Skip to content
Merged
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: 17 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cc = "1.0"

[features]
default = ["all"]
# should enable all libc functions gated behind features
all = [
"abs",
"atoi",
Expand Down Expand Up @@ -53,8 +54,8 @@ all = [
"utoa",
]

# libc functions gated behind features
abs = []
alloc = []
atoi = []
isalpha = []
isdigit = []
Expand All @@ -65,9 +66,6 @@ memchr = []
qsort = []
rand_r = []
rand = ["rand_r", "dep:portable-atomic"]
rand_max_i16 = []
signal = ["dep:portable-atomic"]
signal-cs = ["portable-atomic/critical-section"]
snprintf = []
strcat = []
strchr = []
Expand All @@ -88,3 +86,18 @@ strtoul = []
strtoull = []
strtoumax = []
utoa = []

# options for rand
rand_max_i16 = []

# malloc/free support
alloc = []

# Signal support is optional because it requires atomics
signal = ["dep:portable-atomic"]
# bring in critical-section based portable atomics
signal-cs = ["portable-atomic/critical-section"]

[package.metadata.docs.rs]
# Features to pass to Cargo (default: [])
features = ["all", "alloc", "signal"]
Loading