├── .cargo └── config.toml ├── .git-blame-ignore-revs ├── .gitattributes ├── .github └── workflows │ └── CI.yml ├── .gitignore ├── .gitmodules ├── .rustfmt.toml ├── .vscode └── settings.json ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── examples └── point │ ├── Cargo.toml │ ├── Makefile │ ├── main.c │ ├── rust_points.h │ └── src │ └── lib.rs ├── ffi_tests ├── .cargo │ └── config.toml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── Makefile ├── generated.cffi ├── generated.cs ├── generated.h ├── generated.lua ├── src │ └── lib.rs └── tests │ ├── c │ ├── generated.h │ └── main.c │ ├── csharp │ ├── .gitignore │ ├── Tests.cs │ ├── Tests.csproj │ ├── Tests.sln │ └── generated.cs │ ├── lua │ ├── generated.lua │ └── tests.lua │ └── main.rs ├── guide ├── .gitignore ├── README.md ├── assets │ ├── ditto-logo-small.png │ ├── ditto-logo-with-title-small.png │ ├── ditto-logo-with-title.png │ ├── ditto-logo.png │ ├── ditto-small.png │ ├── ditto.png │ ├── ferris-safety-hat-by-Byter.png │ ├── ferris-unsafe-by-Karen.png │ ├── ffi-call-you-back.jpg │ ├── one-virtualptr-to-rule-them-all.jpg │ ├── safer_ffi.jpg │ └── safer_ffi_code_comparison.png ├── book.toml ├── src │ ├── SUMMARY.md │ ├── appendix │ │ ├── _.md │ │ ├── c-compilation.md │ │ ├── free-compatibility.md │ │ └── how-does-safer_ffi-work.md │ ├── callbacks │ │ ├── _.md │ │ ├── closures.md │ │ └── fn_pointers.md │ ├── derive-reprc │ │ ├── _.md │ │ ├── enum.md │ │ └── struct.md │ ├── disclaimer.md │ ├── dyn_traits │ │ ├── _.md │ │ ├── derive_reprc_dyn.md │ │ ├── futures.md │ │ └── virtual_ptr.md │ ├── example-ditto │ │ └── _.md │ ├── example-hashmap │ │ └── _.md │ ├── ffi-export │ │ ├── _.md │ │ ├── attributes.md │ │ └── sanity-checks.md │ ├── introduction │ │ ├── _.md │ │ └── quickstart.md │ ├── links.md.template │ ├── motivation.md │ ├── motivation │ │ ├── _.md │ │ ├── repr-c-forall.md │ │ └── traditional-ffi.md │ ├── prerequisites.md │ ├── repr_c-types.md │ ├── simple-examples │ │ ├── _.md │ │ ├── max.md │ │ ├── string_concat.md │ │ └── string_concat_cb.md │ └── usage │ │ ├── _.md │ │ ├── cargo-toml.md │ │ ├── custom-types.md │ │ ├── lib-rs.md │ │ └── tldr.md └── theme │ ├── book.css │ ├── book.js │ ├── css │ ├── chrome.css │ ├── general.css │ ├── print.css │ └── variables.css │ ├── favicon.png │ ├── highlight.css │ ├── highlight.js │ └── index.hbs ├── js_tests ├── .cargo │ └── config.toml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── Makefile ├── build.rs ├── index.html ├── src │ └── lib.rs └── tests │ ├── node-entrypoint.js │ ├── tests.mjs │ └── web-entrypoint.mjs ├── napi-dispatcher ├── Cargo.toml ├── dispatcher.rs ├── js_export_common.rs ├── nodejs-derive │ ├── Cargo.toml │ └── src │ │ ├── lib.rs │ │ └── proc_macros │ │ ├── Cargo.toml │ │ └── mod.rs └── wasm │ ├── Cargo.toml │ └── src │ ├── env.rs │ ├── lib.rs │ ├── proc_macros │ ├── Cargo.toml │ └── mod.rs │ ├── utils.rs │ └── values.rs ├── nodejs_tests └── .gitignore ├── run-sh ├── Cargo.toml └── main.rs ├── rust-toolchain.toml ├── safer-ffi-build ├── Cargo.toml └── lib.rs ├── scripts ├── build_docs.sh ├── cargo_publish.sh ├── change_version.sh ├── format.sh └── formatting │ ├── rust-toolchain.toml │ └── setup_cargo_fmt_override.sh ├── src ├── _lib.rs ├── arc.rs ├── boxed.rs ├── bytes.rs ├── c_char.rs ├── char_p.rs ├── closure │ ├── arc.rs │ ├── borrowed.rs │ ├── boxed.rs │ └── mod.rs ├── dyn_traits │ ├── _mod.rs │ ├── dyn_drop.rs │ └── futures │ │ ├── _mod.rs │ │ ├── executor.rs │ │ └── tests.rs ├── headers │ ├── _mod.rs │ ├── definer.rs │ ├── languages │ │ ├── c.rs │ │ ├── csharp.rs │ │ ├── lua.rs │ │ ├── mod.rs │ │ ├── primitives.rs │ │ └── python.rs │ ├── provider.rs │ └── templates │ │ ├── c │ │ ├── _prelude.h │ │ └── epilogue.h │ │ ├── csharp │ │ ├── _prelude.cs │ │ └── epilogue.cs │ │ └── lua │ │ ├── _prelude.lua │ │ └── epilogue.lua ├── js │ ├── _mod.rs │ ├── closures │ │ ├── common.rs │ │ ├── node_js.rs │ │ └── wasm.rs │ ├── ffi_helpers.rs │ ├── impls.rs │ └── registering.rs ├── layout │ ├── _mod.rs │ ├── impls.rs │ ├── macros.rs │ └── niche.rs ├── libc.rs ├── option.rs ├── proc_macro │ ├── Cargo.toml │ ├── _mod.rs │ ├── c_str.rs │ ├── derives │ │ ├── _mod.rs │ │ ├── c_type │ │ │ ├── _mod.rs │ │ │ ├── args.rs │ │ │ ├── js.rs │ │ │ └── struct_.rs │ │ ├── dyn_trait │ │ │ ├── _mod.rs │ │ │ ├── args.rs │ │ │ ├── coercions.rs │ │ │ ├── receiver_types.rs │ │ │ └── vtable_entry.rs │ │ ├── handle_fptr.rs │ │ └── repr_c │ │ │ ├── _mod.rs │ │ │ ├── args.rs │ │ │ ├── enum_.rs │ │ │ ├── js.rs │ │ │ └── struct_.rs │ ├── ffi_export │ │ ├── _mod.rs │ │ ├── const_.rs │ │ ├── fn_ │ │ │ ├── args.rs │ │ │ ├── async_fn.rs │ │ │ └── mod.rs │ │ ├── static_.rs │ │ └── type_.rs │ └── utils │ │ ├── _mod.rs │ │ ├── extension_traits.rs │ │ ├── macros.rs │ │ ├── mb_file_expanded.rs │ │ └── trait_impl_shenanigans.rs ├── ptr.rs ├── shared_cstr.rs ├── slice.rs ├── stabby │ ├── _mod.rs │ ├── boxed_impl.rs │ ├── fatptr_impl.rs │ └── sync_impl.rs ├── string │ ├── _mod.rs │ └── slice.rs ├── tuple.rs ├── utils │ ├── _mod.rs │ ├── extension_traits.rs │ ├── macros.rs │ ├── markers.rs │ └── prelude.rs └── vec.rs └── tests ├── dyn_traits.rs ├── ffi_integration.rs └── layout_macros.rs /.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/.cargo/config.toml -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/.git-blame-ignore-revs -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/.rustfmt.toml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/README.md -------------------------------------------------------------------------------- /examples/point/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/examples/point/Cargo.toml -------------------------------------------------------------------------------- /examples/point/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/examples/point/Makefile -------------------------------------------------------------------------------- /examples/point/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/examples/point/main.c -------------------------------------------------------------------------------- /examples/point/rust_points.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/examples/point/rust_points.h -------------------------------------------------------------------------------- /examples/point/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/examples/point/src/lib.rs -------------------------------------------------------------------------------- /ffi_tests/.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/.cargo/config.toml -------------------------------------------------------------------------------- /ffi_tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/.gitignore -------------------------------------------------------------------------------- /ffi_tests/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/Cargo.lock -------------------------------------------------------------------------------- /ffi_tests/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/Cargo.toml -------------------------------------------------------------------------------- /ffi_tests/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/Makefile -------------------------------------------------------------------------------- /ffi_tests/generated.cffi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/generated.cffi -------------------------------------------------------------------------------- /ffi_tests/generated.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/generated.cs -------------------------------------------------------------------------------- /ffi_tests/generated.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/generated.h -------------------------------------------------------------------------------- /ffi_tests/generated.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/generated.lua -------------------------------------------------------------------------------- /ffi_tests/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/src/lib.rs -------------------------------------------------------------------------------- /ffi_tests/tests/c/generated.h: -------------------------------------------------------------------------------- 1 | ../../generated.h -------------------------------------------------------------------------------- /ffi_tests/tests/c/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/tests/c/main.c -------------------------------------------------------------------------------- /ffi_tests/tests/csharp/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/tests/csharp/.gitignore -------------------------------------------------------------------------------- /ffi_tests/tests/csharp/Tests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/tests/csharp/Tests.cs -------------------------------------------------------------------------------- /ffi_tests/tests/csharp/Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/tests/csharp/Tests.csproj -------------------------------------------------------------------------------- /ffi_tests/tests/csharp/Tests.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/tests/csharp/Tests.sln -------------------------------------------------------------------------------- /ffi_tests/tests/csharp/generated.cs: -------------------------------------------------------------------------------- 1 | ../../generated.cs -------------------------------------------------------------------------------- /ffi_tests/tests/lua/generated.lua: -------------------------------------------------------------------------------- 1 | ../../generated.lua -------------------------------------------------------------------------------- /ffi_tests/tests/lua/tests.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/tests/lua/tests.lua -------------------------------------------------------------------------------- /ffi_tests/tests/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/ffi_tests/tests/main.rs -------------------------------------------------------------------------------- /guide/.gitignore: -------------------------------------------------------------------------------- 1 | book 2 | src/links.md 3 | 4 | -------------------------------------------------------------------------------- /guide/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/README.md -------------------------------------------------------------------------------- /guide/assets/ditto-logo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ditto-logo-small.png -------------------------------------------------------------------------------- /guide/assets/ditto-logo-with-title-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ditto-logo-with-title-small.png -------------------------------------------------------------------------------- /guide/assets/ditto-logo-with-title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ditto-logo-with-title.png -------------------------------------------------------------------------------- /guide/assets/ditto-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ditto-logo.png -------------------------------------------------------------------------------- /guide/assets/ditto-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ditto-small.png -------------------------------------------------------------------------------- /guide/assets/ditto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ditto.png -------------------------------------------------------------------------------- /guide/assets/ferris-safety-hat-by-Byter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ferris-safety-hat-by-Byter.png -------------------------------------------------------------------------------- /guide/assets/ferris-unsafe-by-Karen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ferris-unsafe-by-Karen.png -------------------------------------------------------------------------------- /guide/assets/ffi-call-you-back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/ffi-call-you-back.jpg -------------------------------------------------------------------------------- /guide/assets/one-virtualptr-to-rule-them-all.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/one-virtualptr-to-rule-them-all.jpg -------------------------------------------------------------------------------- /guide/assets/safer_ffi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/safer_ffi.jpg -------------------------------------------------------------------------------- /guide/assets/safer_ffi_code_comparison.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/assets/safer_ffi_code_comparison.png -------------------------------------------------------------------------------- /guide/book.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/book.toml -------------------------------------------------------------------------------- /guide/src/SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/SUMMARY.md -------------------------------------------------------------------------------- /guide/src/appendix/_.md: -------------------------------------------------------------------------------- 1 | # Appendix 2 | -------------------------------------------------------------------------------- /guide/src/appendix/c-compilation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/appendix/c-compilation.md -------------------------------------------------------------------------------- /guide/src/appendix/free-compatibility.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/appendix/free-compatibility.md -------------------------------------------------------------------------------- /guide/src/appendix/how-does-safer_ffi-work.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/appendix/how-does-safer_ffi-work.md -------------------------------------------------------------------------------- /guide/src/callbacks/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/callbacks/_.md -------------------------------------------------------------------------------- /guide/src/callbacks/closures.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/callbacks/closures.md -------------------------------------------------------------------------------- /guide/src/callbacks/fn_pointers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/callbacks/fn_pointers.md -------------------------------------------------------------------------------- /guide/src/derive-reprc/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/derive-reprc/_.md -------------------------------------------------------------------------------- /guide/src/derive-reprc/enum.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/derive-reprc/enum.md -------------------------------------------------------------------------------- /guide/src/derive-reprc/struct.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/derive-reprc/struct.md -------------------------------------------------------------------------------- /guide/src/disclaimer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/disclaimer.md -------------------------------------------------------------------------------- /guide/src/dyn_traits/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/dyn_traits/_.md -------------------------------------------------------------------------------- /guide/src/dyn_traits/derive_reprc_dyn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/dyn_traits/derive_reprc_dyn.md -------------------------------------------------------------------------------- /guide/src/dyn_traits/futures.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/dyn_traits/futures.md -------------------------------------------------------------------------------- /guide/src/dyn_traits/virtual_ptr.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/dyn_traits/virtual_ptr.md -------------------------------------------------------------------------------- /guide/src/example-ditto/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/example-ditto/_.md -------------------------------------------------------------------------------- /guide/src/example-hashmap/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/example-hashmap/_.md -------------------------------------------------------------------------------- /guide/src/ffi-export/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/ffi-export/_.md -------------------------------------------------------------------------------- /guide/src/ffi-export/attributes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/ffi-export/attributes.md -------------------------------------------------------------------------------- /guide/src/ffi-export/sanity-checks.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/ffi-export/sanity-checks.md -------------------------------------------------------------------------------- /guide/src/introduction/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/introduction/_.md -------------------------------------------------------------------------------- /guide/src/introduction/quickstart.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/introduction/quickstart.md -------------------------------------------------------------------------------- /guide/src/links.md.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/links.md.template -------------------------------------------------------------------------------- /guide/src/motivation.md: -------------------------------------------------------------------------------- 1 | # Motivation 2 | -------------------------------------------------------------------------------- /guide/src/motivation/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/motivation/_.md -------------------------------------------------------------------------------- /guide/src/motivation/repr-c-forall.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/motivation/repr-c-forall.md -------------------------------------------------------------------------------- /guide/src/motivation/traditional-ffi.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/motivation/traditional-ffi.md -------------------------------------------------------------------------------- /guide/src/prerequisites.md: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | 3 | - Minimum Supported Rust Version: `1.60.0` 4 | -------------------------------------------------------------------------------- /guide/src/repr_c-types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/repr_c-types.md -------------------------------------------------------------------------------- /guide/src/simple-examples/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/simple-examples/_.md -------------------------------------------------------------------------------- /guide/src/simple-examples/max.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/simple-examples/max.md -------------------------------------------------------------------------------- /guide/src/simple-examples/string_concat.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/simple-examples/string_concat.md -------------------------------------------------------------------------------- /guide/src/simple-examples/string_concat_cb.md: -------------------------------------------------------------------------------- 1 | # string_concat (callback-based) 2 | -------------------------------------------------------------------------------- /guide/src/usage/_.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/usage/_.md -------------------------------------------------------------------------------- /guide/src/usage/cargo-toml.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/usage/cargo-toml.md -------------------------------------------------------------------------------- /guide/src/usage/custom-types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/usage/custom-types.md -------------------------------------------------------------------------------- /guide/src/usage/lib-rs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/src/usage/lib-rs.md -------------------------------------------------------------------------------- /guide/src/usage/tldr.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /guide/theme/book.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/book.css -------------------------------------------------------------------------------- /guide/theme/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/book.js -------------------------------------------------------------------------------- /guide/theme/css/chrome.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/css/chrome.css -------------------------------------------------------------------------------- /guide/theme/css/general.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/css/general.css -------------------------------------------------------------------------------- /guide/theme/css/print.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/css/print.css -------------------------------------------------------------------------------- /guide/theme/css/variables.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/css/variables.css -------------------------------------------------------------------------------- /guide/theme/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/favicon.png -------------------------------------------------------------------------------- /guide/theme/highlight.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/highlight.css -------------------------------------------------------------------------------- /guide/theme/highlight.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/highlight.js -------------------------------------------------------------------------------- /guide/theme/index.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/guide/theme/index.hbs -------------------------------------------------------------------------------- /js_tests/.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/.cargo/config.toml -------------------------------------------------------------------------------- /js_tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/.gitignore -------------------------------------------------------------------------------- /js_tests/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/Cargo.lock -------------------------------------------------------------------------------- /js_tests/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/Cargo.toml -------------------------------------------------------------------------------- /js_tests/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/Makefile -------------------------------------------------------------------------------- /js_tests/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/build.rs -------------------------------------------------------------------------------- /js_tests/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/index.html -------------------------------------------------------------------------------- /js_tests/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/src/lib.rs -------------------------------------------------------------------------------- /js_tests/tests/node-entrypoint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/tests/node-entrypoint.js -------------------------------------------------------------------------------- /js_tests/tests/tests.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/tests/tests.mjs -------------------------------------------------------------------------------- /js_tests/tests/web-entrypoint.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/js_tests/tests/web-entrypoint.mjs -------------------------------------------------------------------------------- /napi-dispatcher/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/Cargo.toml -------------------------------------------------------------------------------- /napi-dispatcher/dispatcher.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/dispatcher.rs -------------------------------------------------------------------------------- /napi-dispatcher/js_export_common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/js_export_common.rs -------------------------------------------------------------------------------- /napi-dispatcher/nodejs-derive/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/nodejs-derive/Cargo.toml -------------------------------------------------------------------------------- /napi-dispatcher/nodejs-derive/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/nodejs-derive/src/lib.rs -------------------------------------------------------------------------------- /napi-dispatcher/nodejs-derive/src/proc_macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/nodejs-derive/src/proc_macros/Cargo.toml -------------------------------------------------------------------------------- /napi-dispatcher/nodejs-derive/src/proc_macros/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/nodejs-derive/src/proc_macros/mod.rs -------------------------------------------------------------------------------- /napi-dispatcher/wasm/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/wasm/Cargo.toml -------------------------------------------------------------------------------- /napi-dispatcher/wasm/src/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/wasm/src/env.rs -------------------------------------------------------------------------------- /napi-dispatcher/wasm/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/wasm/src/lib.rs -------------------------------------------------------------------------------- /napi-dispatcher/wasm/src/proc_macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/wasm/src/proc_macros/Cargo.toml -------------------------------------------------------------------------------- /napi-dispatcher/wasm/src/proc_macros/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/wasm/src/proc_macros/mod.rs -------------------------------------------------------------------------------- /napi-dispatcher/wasm/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/wasm/src/utils.rs -------------------------------------------------------------------------------- /napi-dispatcher/wasm/src/values.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/napi-dispatcher/wasm/src/values.rs -------------------------------------------------------------------------------- /nodejs_tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/nodejs_tests/.gitignore -------------------------------------------------------------------------------- /run-sh/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/run-sh/Cargo.toml -------------------------------------------------------------------------------- /run-sh/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/run-sh/main.rs -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/rust-toolchain.toml -------------------------------------------------------------------------------- /safer-ffi-build/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/safer-ffi-build/Cargo.toml -------------------------------------------------------------------------------- /safer-ffi-build/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/safer-ffi-build/lib.rs -------------------------------------------------------------------------------- /scripts/build_docs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/scripts/build_docs.sh -------------------------------------------------------------------------------- /scripts/cargo_publish.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/scripts/cargo_publish.sh -------------------------------------------------------------------------------- /scripts/change_version.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/scripts/change_version.sh -------------------------------------------------------------------------------- /scripts/format.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/scripts/format.sh -------------------------------------------------------------------------------- /scripts/formatting/rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/scripts/formatting/rust-toolchain.toml -------------------------------------------------------------------------------- /scripts/formatting/setup_cargo_fmt_override.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/scripts/formatting/setup_cargo_fmt_override.sh -------------------------------------------------------------------------------- /src/_lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/_lib.rs -------------------------------------------------------------------------------- /src/arc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/arc.rs -------------------------------------------------------------------------------- /src/boxed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/boxed.rs -------------------------------------------------------------------------------- /src/bytes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/bytes.rs -------------------------------------------------------------------------------- /src/c_char.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/c_char.rs -------------------------------------------------------------------------------- /src/char_p.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/char_p.rs -------------------------------------------------------------------------------- /src/closure/arc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/closure/arc.rs -------------------------------------------------------------------------------- /src/closure/borrowed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/closure/borrowed.rs -------------------------------------------------------------------------------- /src/closure/boxed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/closure/boxed.rs -------------------------------------------------------------------------------- /src/closure/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/closure/mod.rs -------------------------------------------------------------------------------- /src/dyn_traits/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/dyn_traits/_mod.rs -------------------------------------------------------------------------------- /src/dyn_traits/dyn_drop.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/dyn_traits/dyn_drop.rs -------------------------------------------------------------------------------- /src/dyn_traits/futures/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/dyn_traits/futures/_mod.rs -------------------------------------------------------------------------------- /src/dyn_traits/futures/executor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/dyn_traits/futures/executor.rs -------------------------------------------------------------------------------- /src/dyn_traits/futures/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/dyn_traits/futures/tests.rs -------------------------------------------------------------------------------- /src/headers/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/_mod.rs -------------------------------------------------------------------------------- /src/headers/definer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/definer.rs -------------------------------------------------------------------------------- /src/headers/languages/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/languages/c.rs -------------------------------------------------------------------------------- /src/headers/languages/csharp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/languages/csharp.rs -------------------------------------------------------------------------------- /src/headers/languages/lua.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/languages/lua.rs -------------------------------------------------------------------------------- /src/headers/languages/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/languages/mod.rs -------------------------------------------------------------------------------- /src/headers/languages/primitives.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/languages/primitives.rs -------------------------------------------------------------------------------- /src/headers/languages/python.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/languages/python.rs -------------------------------------------------------------------------------- /src/headers/provider.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/provider.rs -------------------------------------------------------------------------------- /src/headers/templates/c/_prelude.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/templates/c/_prelude.h -------------------------------------------------------------------------------- /src/headers/templates/c/epilogue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/templates/c/epilogue.h -------------------------------------------------------------------------------- /src/headers/templates/csharp/_prelude.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/templates/csharp/_prelude.cs -------------------------------------------------------------------------------- /src/headers/templates/csharp/epilogue.cs: -------------------------------------------------------------------------------- 1 | 2 | }} /* {PkgName} */ 3 | -------------------------------------------------------------------------------- /src/headers/templates/lua/_prelude.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/headers/templates/lua/_prelude.lua -------------------------------------------------------------------------------- /src/headers/templates/lua/epilogue.lua: -------------------------------------------------------------------------------- 1 | ]] -------------------------------------------------------------------------------- /src/js/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/js/_mod.rs -------------------------------------------------------------------------------- /src/js/closures/common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/js/closures/common.rs -------------------------------------------------------------------------------- /src/js/closures/node_js.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/js/closures/node_js.rs -------------------------------------------------------------------------------- /src/js/closures/wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/js/closures/wasm.rs -------------------------------------------------------------------------------- /src/js/ffi_helpers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/js/ffi_helpers.rs -------------------------------------------------------------------------------- /src/js/impls.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/js/impls.rs -------------------------------------------------------------------------------- /src/js/registering.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/js/registering.rs -------------------------------------------------------------------------------- /src/layout/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/layout/_mod.rs -------------------------------------------------------------------------------- /src/layout/impls.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/layout/impls.rs -------------------------------------------------------------------------------- /src/layout/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/layout/macros.rs -------------------------------------------------------------------------------- /src/layout/niche.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/layout/niche.rs -------------------------------------------------------------------------------- /src/libc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/libc.rs -------------------------------------------------------------------------------- /src/option.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/option.rs -------------------------------------------------------------------------------- /src/proc_macro/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/Cargo.toml -------------------------------------------------------------------------------- /src/proc_macro/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/_mod.rs -------------------------------------------------------------------------------- /src/proc_macro/c_str.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/c_str.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/_mod.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/c_type/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/c_type/_mod.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/c_type/args.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/c_type/args.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/c_type/js.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/proc_macro/derives/c_type/struct_.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/c_type/struct_.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/dyn_trait/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/dyn_trait/_mod.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/dyn_trait/args.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/dyn_trait/args.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/dyn_trait/coercions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/dyn_trait/coercions.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/dyn_trait/receiver_types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/dyn_trait/receiver_types.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/dyn_trait/vtable_entry.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/dyn_trait/vtable_entry.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/handle_fptr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/handle_fptr.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/repr_c/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/repr_c/_mod.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/repr_c/args.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/repr_c/args.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/repr_c/enum_.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/repr_c/enum_.rs -------------------------------------------------------------------------------- /src/proc_macro/derives/repr_c/js.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/proc_macro/derives/repr_c/struct_.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/derives/repr_c/struct_.rs -------------------------------------------------------------------------------- /src/proc_macro/ffi_export/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/ffi_export/_mod.rs -------------------------------------------------------------------------------- /src/proc_macro/ffi_export/const_.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/ffi_export/const_.rs -------------------------------------------------------------------------------- /src/proc_macro/ffi_export/fn_/args.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/ffi_export/fn_/args.rs -------------------------------------------------------------------------------- /src/proc_macro/ffi_export/fn_/async_fn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/ffi_export/fn_/async_fn.rs -------------------------------------------------------------------------------- /src/proc_macro/ffi_export/fn_/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/ffi_export/fn_/mod.rs -------------------------------------------------------------------------------- /src/proc_macro/ffi_export/static_.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/ffi_export/static_.rs -------------------------------------------------------------------------------- /src/proc_macro/ffi_export/type_.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/ffi_export/type_.rs -------------------------------------------------------------------------------- /src/proc_macro/utils/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/utils/_mod.rs -------------------------------------------------------------------------------- /src/proc_macro/utils/extension_traits.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/utils/extension_traits.rs -------------------------------------------------------------------------------- /src/proc_macro/utils/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/utils/macros.rs -------------------------------------------------------------------------------- /src/proc_macro/utils/mb_file_expanded.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/utils/mb_file_expanded.rs -------------------------------------------------------------------------------- /src/proc_macro/utils/trait_impl_shenanigans.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/proc_macro/utils/trait_impl_shenanigans.rs -------------------------------------------------------------------------------- /src/ptr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/ptr.rs -------------------------------------------------------------------------------- /src/shared_cstr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/shared_cstr.rs -------------------------------------------------------------------------------- /src/slice.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/slice.rs -------------------------------------------------------------------------------- /src/stabby/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/stabby/_mod.rs -------------------------------------------------------------------------------- /src/stabby/boxed_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/stabby/boxed_impl.rs -------------------------------------------------------------------------------- /src/stabby/fatptr_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/stabby/fatptr_impl.rs -------------------------------------------------------------------------------- /src/stabby/sync_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/stabby/sync_impl.rs -------------------------------------------------------------------------------- /src/string/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/string/_mod.rs -------------------------------------------------------------------------------- /src/string/slice.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/string/slice.rs -------------------------------------------------------------------------------- /src/tuple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/tuple.rs -------------------------------------------------------------------------------- /src/utils/_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/utils/_mod.rs -------------------------------------------------------------------------------- /src/utils/extension_traits.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/utils/extension_traits.rs -------------------------------------------------------------------------------- /src/utils/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/utils/macros.rs -------------------------------------------------------------------------------- /src/utils/markers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/utils/markers.rs -------------------------------------------------------------------------------- /src/utils/prelude.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/utils/prelude.rs -------------------------------------------------------------------------------- /src/vec.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/src/vec.rs -------------------------------------------------------------------------------- /tests/dyn_traits.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/tests/dyn_traits.rs -------------------------------------------------------------------------------- /tests/ffi_integration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/tests/ffi_integration.rs -------------------------------------------------------------------------------- /tests/layout_macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getditto/safer_ffi/HEAD/tests/layout_macros.rs --------------------------------------------------------------------------------