# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.72.1" name = "safer-ffi" version = "0.1.13" authors = ["Daniel Henry-Mantilla "] exclude = ["/guide"] description = "Write safer FFI code in Rust without polluting it with unsafe code" readme = "README.md" keywords = [ "ffi", "no_std", "framework", "safety", "bindings", ] license = "MIT" repository = "https://github.com/getditto/safer_ffi" [package.metadata.docs.rs] features = ["docs"] [lib] path = "src/_lib.rs" [[test]] name = "ffi-tests" path = "ffi_tests/src/lib.rs" [dependencies.async-compat] version = "0.2.1" optional = true [dependencies.extern-c] version = "0.1.0" [dependencies.futures] version = "0.3.24" optional = true [dependencies.inventory] version = "0.3.5" optional = true [dependencies.libc] version = "0.2.66" default-features = false [dependencies.log] version = "0.4.8" optional = true [dependencies.macro_rules_attribute] version = "0.1.3" [dependencies.napi] version = "0.0.3" optional = true package = "cratesio-placeholder-package" [dependencies.once_cell] version = "1.17.1" optional = true [dependencies.paste] version = "1.0.12" [dependencies.safer_ffi-proc_macros] version = "=0.1.13" [dependencies.scopeguard] version = "1.1.0" default-features = false [dependencies.serde] version = "1.0.171" optional = true default-features = false [dependencies.stabby] version = "36.1.1" features = [ "experimental-ctypes", "alloc-rs", ] optional = true default-features = false [dependencies.tokio] version = "1.26.0" features = ["rt"] optional = true [dependencies.uninit] version = "0.5.0" default-features = false [dependencies.unwind_safe] version = "0.1.0" [dependencies.with_builtin_macros] version = "0.0.3" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.serde_test] version = "1.0.177" [features] alloc = [] async-fn = ["safer_ffi-proc_macros/async-fn"] c-headers-with-fn-style = ["headers"] debug_proc_macros = ["safer_ffi-proc_macros/verbose-expansions"] default = ["std"] docs = [ "headers", "default", "nightly", "tokio", ] dyn-traits = [ "safer_ffi-proc_macros/dyn-traits", "std", ] futures = [ "dep:futures", "dyn-traits", ] headers = [ "inventory", "safer_ffi-proc_macros/headers", "std", ] internal-tests = [ "async-fn", "headers", "python-headers", "dyn-traits", "tokio/rt-multi-thread", ] inventory-0-3-1 = [] js = [ "async-fn", "dep:once_cell", "headers", "inventory", "napi", "safer_ffi-proc_macros/js", "std", ] nightly = [] proc_macros = [] python-headers = ["headers"] serde = ["dep:serde"] stabby = ["dep:stabby"] std = [ "alloc", "scopeguard/use_std", "stabby?/std", ] tokio = [ "async-compat", "dep:tokio", "futures", ]