link-section 0.17.1

Link-time initialized slices for Rust, with full support for Linux, macOS, Windows, WASM and many more platforms.
Documentation
# 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.85"
name = "link-section"
version = "0.17.1"
authors = ["Matt Mastracci <matthew@mastracci.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Link-time initialized slices for Rust, with full support for Linux, macOS, Windows, WASM and many more platforms."
readme = "README.md"
categories = [
    "development-tools::build-utils",
    "no-std",
    "no-std::no-alloc",
    "embedded",
    "development-tools::procedural-macro-helpers",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/mmastrac/linktime"

[features]
default = [
    "proc_macro",
    "std",
]
proc_macro = ["dep:linktime-proc-macro"]
std = []

[lib]
name = "link_section"
path = "src/lib.rs"

[[example]]
name = "link-section-const"
path = "examples/const.rs"

[[example]]
name = "link-section-dyn"
path = "examples/dyn.rs"

[[example]]
name = "link-section-example"
path = "examples/example.rs"

[[example]]
name = "link-section-movable"
path = "examples/movable.rs"

[[example]]
name = "link-section-movable-no-macro"
path = "examples/movable-no-macro.rs"

[[example]]
name = "link-section-mut"
path = "examples/mut.rs"

[[example]]
name = "link-section-mut-no-macro"
path = "examples/mut-no-macro.rs"

[[example]]
name = "link-section-ref"
path = "examples/ref.rs"

[[test]]
name = "macrotest"
path = "tests/macrotest.rs"

[dependencies.linktime-proc-macro]
version = "0.1.0"
features = ["link_section"]
optional = true

[dev-dependencies.macrotest]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.trybuild]
version = "1"

[dev-dependencies.walkdir]
version = "2"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(linktime_used_linker)",
    "cfg(linktime_asan)",
]