@@ -18,6 +18,12 @@ flate2 = { version = "1", optional = true }
18
18
indexmap = { version = " 1.1" , optional = true }
19
19
wasmparser = { version = " 0.54" , optional = true }
20
20
21
+ # Internal feature, only used when building as part of libstd, not part of the
22
+ # stable interface of this crate.
23
+ core = { version = ' 1.0.0' , optional = true , package = ' rustc-std-workspace-core' }
24
+ compiler_builtins = { version = ' 0.1.2' , optional = true }
25
+ alloc = { version = ' 1.0.0' , optional = true , package = ' rustc-std-workspace-alloc' }
26
+
21
27
[dev-dependencies ]
22
28
memmap = " 0.7"
23
29
@@ -38,6 +44,14 @@ wasm = ["wasmparser"]
38
44
39
45
default = [" read" , " compression" ]
40
46
47
+ # Umbrella feature for enabling all user-facing features of this crate. Does not
48
+ # enable internal features like `rustc-dep-of-std`.
49
+ all = [" read" , " write" , " std" , " compression" , " default" ]
50
+
51
+ # Internal feature, only used when building as part of libstd, not part of the
52
+ # stable interface of this crate.
53
+ rustc-dep-of-std = [' core' , ' compiler_builtins' , ' alloc' ]
54
+
41
55
[[example ]]
42
56
name = " nm"
43
57
required-features = [" read" ]
0 commit comments