1 | [package] |
2 | name = "weezl" |
3 | version = "0.1.8" |
4 | license = "MIT OR Apache-2.0" |
5 | description = "Fast LZW compression and decompression." |
6 | authors = ["The image-rs Developers" ] |
7 | readme = "README.md" |
8 | repository = "https://github.com/image-rs/lzw" |
9 | documentation = "https://docs.rs/weezl" |
10 | edition = "2018" |
11 | exclude = ["benches/*.lzw" ] |
12 | |
13 | [lib] |
14 | name = "weezl" |
15 | bench = false |
16 | |
17 | [dependencies.futures] |
18 | optional = true |
19 | version = "0.3.12" |
20 | default-features = false |
21 | features = ["std" ] |
22 | |
23 | [dev-dependencies] |
24 | criterion = "0.3.1" |
25 | [dev-dependencies.tokio] |
26 | version = "1" |
27 | default-features = false |
28 | features = ["macros" , "io-util" , "net" , "rt" , "rt-multi-thread" ] |
29 | [dev-dependencies.tokio-util] |
30 | version = "0.6.2" |
31 | default-features = false |
32 | features = ["compat" ] |
33 | |
34 | [features] |
35 | default = ["std" ] |
36 | # Enable usage of the standard library and in particular any interface that |
37 | # requires the io interfaces `Read` and `Write`. |
38 | std = ["alloc" ] |
39 | # Enable usage of the `alloc` crate. You should always have this feature |
40 | # enabled. Without this feature neither the encoder nor the decoder exists. |
41 | # This is purely a reservation for future possibilities. |
42 | alloc = [] |
43 | # Enable usage of `async` through `futures`. This is basically the blocker |
44 | # for `1.0` as we may track its version. Note that this negates no_std right |
45 | # now but implicitly through being required from futures. We also use the |
46 | # `std::io::Error` interface. Note that this features is NOT supported on |
47 | # 1.34.2 but only on stable. |
48 | async = ["futures" , "std" ] |
49 | |
50 | [[bin]] |
51 | name = "lzw" |
52 | path = "bin/lzw.rs" |
53 | bench = false |
54 | required-features = ["std" ] |
55 | |
56 | [[bench]] |
57 | name = "msb8" |
58 | harness = false |
59 | required-features = ["std" ] |
60 | |
61 | [[example]] |
62 | name = "lzw-compress" |
63 | required-features = ["std" ] |
64 | |
65 | [[example]] |
66 | name = "lzw-decompress" |
67 | required-features = ["std" ] |
68 | |
69 | [[test]] |
70 | name = "async" |
71 | required-features = ["async" , "std" ] |
72 | |
73 | [[test]] |
74 | name = "roundtrip" |
75 | required-features = ["std" ] |
76 | |
77 | [[test]] |
78 | name = "roundtrip_vec" |
79 | required-features = ["alloc" ] |
80 | |
81 | [[test]] |
82 | name = "implicit_reset" |
83 | required-features = ["std" ] |
84 | |
85 | [package.metadata.docs.rs] |
86 | all-features = true |
87 | |