]> git.lizzy.rs Git - enumset.git/blobdiff - enumset/src/lib.rs
Use proc-macro-crate to allow easier use when enumset is renamed.
[enumset.git] / enumset / src / lib.rs
index b05fcf76e50d939717f5bd0e470b2737ccaeebf9..0ff95fb4583f744e9d8bf7a957e3ab62d2e5c9a8 100644 (file)
@@ -164,7 +164,8 @@ use crate::repr::EnumSetTypeRepr;
 ///   automatically derived versions, or unintentional behavior may be a result.
 /// * `#[enumset(no_ops)` prevents the derive from implementing any operator traits.
 /// * `#[enumset(crate_name = "enumset2")]` may be used to change the name of the `enumset` crate
-///   used in the generated code, if you have renamed the crate via cargo options.
+///   used in the generated code. By default enumset parses `Cargo.toml` to determine the name of
+///   the crate, or falls back to `enumset` if it cannot be parsed.
 ///
 /// When the `serde` feature is used, the following features may also be specified. These options
 /// may be used (with no effect) when building without the feature enabled: