We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993f9ae commit 789bd64Copy full SHA for 789bd64
enum-iterator/src/lib.rs
@@ -53,6 +53,18 @@
53
//! assert_eq!(last::<Foo>(), Some(Foo { a: true, b: 255 }));
54
//! ```
55
//!
56
+//! # Custom crate path in generated code
57
+//!
58
+//! The code generated by the derive macro defaults to using `::enum_iterator` as the path for
59
+//! items defined in this crate. This can be customized using the
60
+//! `#[enum_iterator(crate = foo::bar)]` derive macro attribute.
61
62
+//! ```
63
+//! #[derive(enum_iterator::Sequence)]
64
+//! #[enum_iterator(crate = enum_iterator)]
65
+//! struct Foo;
66
67
68
//! # Rust version
69
//! This crate tracks stable Rust. Minor releases may require a newer Rust version. Patch releases
70
//! must not require a newer Rust version.
0 commit comments