Skip to content

Commit

Permalink
Upgrade stabby to 36.1.1 (#234)
Browse files Browse the repository at this point in the history
* Upgrade stabby to 36.1.1

* v0.1.11
  • Loading branch information
p-avital authored Jul 31, 2024
1 parent 3de8da5 commit 6b3876a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 89 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 19 additions & 61 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,95 +3,55 @@ path = "src/_lib.rs"

[package]
name = "safer-ffi"
version = "0.1.10" # Keep in sync
authors = [
"Daniel Henry-Mantilla <[email protected]>",
]
version = "0.1.11" # Keep in sync
authors = ["Daniel Henry-Mantilla <[email protected]>"]
edition = "2021"
rust-version = "1.72.1"

description = "Write safer FFI code in Rust without polluting it with unsafe code"
keywords = [
"ffi", "no_std", "framework", "safety", "bindings",
]
keywords = ["ffi", "no_std", "framework", "safety", "bindings"]
license = "MIT"
repository = "https://github.com/getditto/safer_ffi"

readme = "README.md"

exclude = [
"/guide",
]
exclude = ["/guide"]

[features]
default = [
"std",
]
default = ["std"]

# Document under the following features: all but for debug or experimental.
docs = [
"headers",
"default",
"nightly",
"tokio",
]
docs = ["headers", "default", "nightly", "tokio"]

nightly = []

alloc = []
std = [
"alloc",
"scopeguard/use_std",
"stabby?/std",
]
std = ["alloc", "scopeguard/use_std", "stabby?/std"]

proc_macros = [] # Deprecated

async-fn = [
"safer_ffi-proc_macros/async-fn",
]
async-fn = ["safer_ffi-proc_macros/async-fn"]

debug_proc_macros = [
"safer_ffi-proc_macros/verbose-expansions",
]
debug_proc_macros = ["safer_ffi-proc_macros/verbose-expansions"]

dyn-traits = [
"safer_ffi-proc_macros/dyn-traits",
# FIXME: make this finer-grained
"std",
]

futures = [
"dep:futures",
"dyn-traits",
]
futures = ["dep:futures", "dyn-traits"]

serde = [
"dep:serde",
]
serde = ["dep:serde"]

stabby = [
"dep:stabby",
]
stabby = ["dep:stabby"]

tokio = [
"async-compat",
"dep:tokio",
"futures",
]
tokio = ["async-compat", "dep:tokio", "futures"]

headers = [
"inventory",
"safer_ffi-proc_macros/headers",
"std",
]
python-headers = [
"headers",
]
headers = ["inventory", "safer_ffi-proc_macros/headers", "std"]
python-headers = ["headers"]
# Tweak the generated `.h` ever so slightly.
c-headers-with-fn-style = [
"headers",
]
c-headers-with-fn-style = ["headers"]

# PRIVATE FEATURE / not part of crates.io package!
js = [
Expand Down Expand Up @@ -152,16 +112,14 @@ serde.version = "1.0.204"
serde.optional = true
serde.default_features = false

stabby.version = "36.1.1-rc8"
stabby.version = "36.1.1"
stabby.optional = true
stabby.default-features = false
stabby.features = ["experimental-ctypes", "alloc-rs"]

tokio.optional = true
tokio.version = "1.26.0"
tokio.features = [
"rt",
]
tokio.features = ["rt"]

uninit.version = "0.5.0"
uninit.default-features = false
Expand All @@ -179,7 +137,7 @@ version = "0.0.3"

[dependencies.safer_ffi-proc_macros]
path = "src/proc_macro"
version = "=0.1.10" # Keep in sync
version = "=0.1.11" # Keep in sync

[workspace]
members = [
Expand Down
16 changes: 8 additions & 8 deletions ffi_tests/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions js_tests/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/proc_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ proc-macro = true

[package]
name = "safer_ffi-proc_macros"
version = "0.1.10" # Keep in sync
version = "0.1.11" # Keep in sync
authors = ["Daniel Henry-Mantilla <[email protected]>"]
edition = "2021"

Expand All @@ -31,9 +31,7 @@ features = [
async-fn = []
dyn-traits = []
headers = []
js = [
"async-fn",
]
js = ["async-fn"]
verbose-expansions = [
# "prettyplease",
]

0 comments on commit 6b3876a

Please sign in to comment.