Add cargo support
Fixed gzip encyption bug