diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-03-05 08:32:33 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-03-07 18:35:31 -0500 |
commit | d35f11fc08b9033b2ce012eb394028b19d7e25f4 (patch) | |
tree | 4e476dba5542543f03a027fe6151243180daef5d | |
parent | c08b6e29d9ea70d03f34e8517d74a7fcbd21bc8c (diff) | |
download | meson-d35f11fc08b9033b2ce012eb394028b19d7e25f4.zip meson-d35f11fc08b9033b2ce012eb394028b19d7e25f4.tar.gz meson-d35f11fc08b9033b2ce012eb394028b19d7e25f4.tar.bz2 |
docs: document the rust_crate_type build_target keyword
-rw-r--r-- | docs/yaml/functions/_build_target_base.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml index 68df5d8..88fb8ae 100644 --- a/docs/yaml/functions/_build_target_base.yaml +++ b/docs/yaml/functions/_build_target_base.yaml @@ -276,3 +276,23 @@ kwargs: version specification such as `windows,6.0`. See [MSDN documentation](https://docs.microsoft.com/en-us/cpp/build/reference/subsystem-specify-subsystem) for the full list. + + rust_crate_type: + type: str + since: 0.41.0 + description: | + Set the specific type of rust crate to compile (when compiling rust). + + If the target is an [[executable]] this defaults to "bin", the only + allowed value. + + If it is a [[static_library]] it defaults to "lib", and may be "lib", + "staticlib", or "rlib". If "lib" then Rustc will pick a default, "staticlib" + means a C ABI library, "rlib" means a Rust ABI. + + If it is a [[shared_library]] it defaults to "lib", and may be "lib", + "dylib", "cdylib", or "proc-macro". If "lib" then Rustc will pick a + default, "cdylib" means a C ABI library, "dylib" means a Rust ABI, and + "proc-macro" is a special rust proceedural macro crate. + + "proc-macro" is new in 0.62.0. |