1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
diff --git a/Cargo.toml b/Cargo.toml
index a3655eb..8851d63 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -92,14 +92,17 @@ path = "src/lib.rs"
[[example]]
name = "backwards_compat"
path = "examples/backwards_compat.rs"
+required-features = ["alloc", "bytecheck"]
[[example]]
name = "complex_wrapper_types"
path = "examples/complex_wrapper_types.rs"
+required-features = ["alloc"]
[[example]]
name = "derive_partial_ord"
path = "examples/derive_partial_ord.rs"
+required-features = ["alloc"]
[[example]]
name = "explicit_enum_discriminants"
@@ -108,18 +111,22 @@ path = "examples/explicit_enum_discriminants.rs"
[[example]]
name = "json_like_schema"
path = "examples/json_like_schema.rs"
+required-features = ["alloc", "bytecheck", "std"]
[[example]]
name = "niching"
path = "examples/niching.rs"
+required-features = ["bytecheck"]
[[example]]
name = "readme"
path = "examples/readme.rs"
+required-features = ["alloc","bytecheck"]
[[example]]
name = "remote_types"
path = "examples/remote_types.rs"
+required-features = ["alloc", "bytecheck"]
[[test]]
name = "derive"
|