Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove quotes from features #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions mavlink-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,20 @@ async-trait = { version = "0.1.18", optional = true }
tokio-serial = { version = "5.4.4", default-features = false, optional = true }

[features]
"std" = ["byteorder/std"]
"udp" = []
"tcp" = []
"direct-serial" = ["serial"]
default = ["std", "tcp", "udp", "direct-serial", "serde"]

std = ["byteorder/std"]
udp = []
tcp = []
direct-serial = ["serial"]
# NOTE: Only one of 'embedded' and 'embedded-hal-02' features can be enabled.
# Use "embedded' feature to enable embedded-hal=1.0 (embedded-io and embedded-io-async is part of embedded-hal).
# Use 'embedded-hal-0.2' feature to enable deprecated embedded-hal=0.2.3 (some hals is not supports embedded-hal=1.0 yet).
"embedded" = ["dep:embedded-io", "dep:embedded-io-async"]
"embedded-hal-02" = ["dep:nb", "dep:embedded-hal-02"]
"serde" = ["dep:serde", "dep:serde_arrays"]
"tokio-1" = ["dep:tokio", "dep:async-trait", "dep:tokio-serial"]
"signing" = ["dep:sha2"]
default = ["std", "tcp", "udp", "direct-serial", "serde"]
embedded = ["dep:embedded-io", "dep:embedded-io-async"]
embedded-hal-02 = ["dep:nb", "dep:embedded-hal-02"]
serde = ["dep:serde", "dep:serde_arrays"]
tokio-1 = ["dep:tokio", "dep:async-trait", "dep:tokio-serial"]
signing = ["dep:sha2"]

[dev-dependencies]
tokio = { version = "1.0", default-features = false, features = ["io-util", "net", "sync", "fs", "macros", "rt"] }
63 changes: 32 additions & 31 deletions mavlink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ serde = { version = "1.0.115", optional = true, features = ["derive"] }
serde_arrays = { version = "0.1.0", optional = true }

[features]
"all" = [
default = ["std", "tcp", "udp", "direct-serial", "serde", "ardupilotmega"]
all = [
"ardupilotmega",
"asluav",
"common",
Expand All @@ -50,24 +51,25 @@ serde_arrays = { version = "0.1.0", optional = true }
"avssuas",
"cubepilot",
]
"ardupilotmega" = ["common", "icarous", "uavionix"]
"asluav" = ["common"]
"avssuas" = ["common"]
"development" = ["common"]
"matrixpilot" = ["common"]
"minimal" = []
"paparazzi" = ["common"]
"python_array_test" = ["common"]
"slugs" = ["common"]
"standard" = ["common"]
"test" = []
"ualberta" = ["common"]
"uavionix" = ["common"]
"icarous" = []
"common" = []
"cubepilot" = ["common"]

"all-dialects" = [
ardupilotmega = ["common", "icarous", "uavionix"]
asluav = ["common"]
avssuas = ["common"]
development = ["common"]
matrixpilot = ["common"]
minimal = []
paparazzi = ["common"]
python_array_test = ["common"]
slugs = ["common"]
standard = ["common"]
test = []
ualberta = ["common"]
uavionix = ["common"]
icarous = []
common = []
cubepilot = ["common"]

all-dialects = [
"ardupilotmega",
"asluav",
"avssuas",
Expand All @@ -86,22 +88,21 @@ serde_arrays = { version = "0.1.0", optional = true }
"cubepilot",
]

"format-generated-code" = []
"emit-description" = ["mavlink-bindgen/emit-description"]
"emit-extensions" = ["mavlink-bindgen/emit-extensions"]
"std" = ["mavlink-core/std"]
"udp" = ["mavlink-core/udp"]
"tcp" = ["mavlink-core/tcp"]
"signing" = ["mavlink-core/signing"]
"direct-serial" = ["mavlink-core/direct-serial"]
format-generated-code = []
emit-description = ["mavlink-bindgen/emit-description"]
emit-extensions = ["mavlink-bindgen/emit-extensions"]
std = ["mavlink-core/std"]
udp = ["mavlink-core/udp"]
tcp = ["mavlink-core/tcp"]
signing = ["mavlink-core/signing"]
direct-serial = ["mavlink-core/direct-serial"]
# NOTE: Only one of 'embedded' and 'embedded-hal-02' features can be enabled.
# Use "embedded' feature to enable embedded-hal=1.0 (embedded-io and embedded-io-async is part of embedded-hal).
# Use 'embedded-hal-0.2' feature to enable deprecated embedded-hal=0.2.3 (some hals is not supports embedded-hal=1.0 yet).
"embedded" = ["mavlink-core/embedded"]
"embedded-hal-02" = ["mavlink-core/embedded-hal-02"]
"serde" = ["mavlink-core/serde", "dep:serde", "dep:serde_arrays"]
"tokio-1" = ["mavlink-core/tokio-1"]
default = ["std", "tcp", "udp", "direct-serial", "serde", "ardupilotmega"]
embedded = ["mavlink-core/embedded"]
embedded-hal-02 = ["mavlink-core/embedded-hal-02"]
serde = ["mavlink-core/serde", "dep:serde", "dep:serde_arrays"]
tokio-1 = ["mavlink-core/tokio-1"]

# build with all features on docs.rs so that users viewing documentation
# can see everything
Expand Down