-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,038 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "zstd"] | ||
path = zstd | ||
path = zstd-sys/zstd | ||
url = https://github.com/facebook/zstd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
[package] | ||
authors = ["Alexandre Bury <[email protected]>"] | ||
build = "src/build.rs" | ||
description = "Binding for the zstd compression library." | ||
documentation = "https://docs.rs/zstd" | ||
keywords = ["zstd", "zstandard", "compression"] | ||
categories = ["compression", "api-bindings"] | ||
license = "MIT" | ||
name = "zstd" | ||
repository = "https://github.com/gyscos/zstd-rs" | ||
version = "0.4.4" | ||
version = "0.4.5" | ||
exclude = ["assets"] | ||
|
||
[badges] | ||
travis-ci = { repository = "gyscos/zstd-rs" } | ||
|
||
[build-dependencies] | ||
gcc = "0.3.28" | ||
glob = "0.2.11" | ||
|
||
[dependencies] | ||
libc = "0.2" | ||
zstd-sys = { version = "1.1.4", default-features = false } | ||
|
||
[dev-dependencies] | ||
clap = "2.6.0" | ||
|
||
[features] | ||
default = ["legacy"] | ||
legacy = [] | ||
legacy = ["zstd-sys/legacy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ extern crate zstd; | |
#[macro_use] | ||
extern crate clap; | ||
|
||
use std::io; | ||
|
||
use clap::{App, Arg}; | ||
use std::io; | ||
|
||
// This program trains a dictionary from one or more files, | ||
// to make future compression of similar small files more efficient. | ||
|
@@ -17,14 +17,14 @@ fn main() { | |
.author("Alexandre Bury <[email protected]>") | ||
.about("A zstd dict trainer") | ||
.arg(Arg::with_name("MAX_SIZE") | ||
.help("Maximum dictionary size in bytes") | ||
.short("s") | ||
.long("max_size") | ||
.takes_value(true)) | ||
.help("Maximum dictionary size in bytes") | ||
.short("s") | ||
.long("max_size") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("FILE") | ||
.help("Files to use as input") | ||
.required(true) | ||
.multiple(true)) | ||
.help("Files to use as input") | ||
.required(true) | ||
.multiple(true)) | ||
.get_matches(); | ||
|
||
let size = value_t!(matches, "MAX_SIZE", usize).unwrap_or(110 * 1024); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.