Skip to content

Commit ef3af1a

Browse files
committed
pass_attribute
1 parent 965a358 commit ef3af1a

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "pass_attribute"
3+
version = "0.1.0"
4+
edition = "2021"
5+
publish = false
6+
7+
[dependencies]
8+
9+
[features]
10+
default = ["bar"]
11+
bar = []
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub struct Foo;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[cfg(feature = "bar")]
2+
mod foo;
3+
#[cfg(feature = "bar")]
4+
pub use foo::Foo;

0 commit comments

Comments
 (0)