Skip to content

Commit 9862fed

Browse files
committed
Add feature flag
・add `rocket_support` feature flag
1 parent 479f6bc commit 9862fed

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ license-file = "LICENSE"
1111
keywords = ["line", "linebot", "line-bot-sdk", "line-messaging-api"]
1212
categories = ["api-bindings"]
1313

14+
[features]
15+
default = []
16+
rocket_support = ["rocket"]
1417

1518
[dependencies]
16-
rocket = "0.4"
19+
rocket = { version = "0.4", optional = true }
1720
reqwest = { version = "0.11.0", features = ["blocking", "json"] }
1821
serde = { version = "1.0", features = ["derive"] }
1922
serde_json = "1.0"

src/support/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
//! Support for framework
22
3+
#[cfg(feature = "rocket_support")]
34
pub mod rocket_support;

0 commit comments

Comments
 (0)