Debian Codegraph @

debian/rust-vendor/ctor/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2021"
14 rust-version = "1.60"
15 name = "ctor"
16 version = "1.0.13"
17 authors = ["Matt Mastracci <[email protected]>"]
18 build = false
19 exclude = ["tests"]
20 autolib = false
21 autobins = false
22 autoexamples = false
23 autotests = false
24 autobenches = false
25 description = "Global, no_std-compatible constructors for all platforms that run before main (like C/C++ __attribute__((constructor)))"
26 readme = "README.md"
27 categories = [
28 "development-tools::build-utils",
29 "no-std",
30 "no-std::no-alloc",
31 "embedded",
32 "development-tools::procedural-macro-helpers",
33 ]
34 license = "Apache-2.0 OR MIT"
35 repository = "https://github.com/mmastrac/linktime"
36
37 [features]
38 default = [
39 "std",
40 "proc_macro",
41 "priority",
42 ]
43 priority = ["dep:link-section"]
44 proc_macro = ["dep:linktime-proc-macro"]
45 std = []
46
47 [lib]
48 name = "ctor"
49 path = "src/lib.rs"
50
51 [[example]]
52 name = "ctor-advanced"
53 path = "examples/ctor-advanced.rs"
54
55 [[example]]
56 name = "ctor-basic"
57 path = "examples/ctor-basic.rs"
58
59 [[example]]
60 name = "ctor-dynamic"
61 path = "examples/ctor-dynamic.rs"
62
63 [[example]]
64 name = "ctor-example"
65 path = "examples/ctor-example.rs"
66
67 [[example]]
68 name = "ctor-priority"
69 path = "examples/ctor-priority.rs"
70
71 [[example]]
72 name = "ctor-statics"
73 path = "examples/ctor-statics.rs"
74
75 [dependencies.link-section]
76 version = "0.19.3"
77 optional = true
78 default-features = false
79
80 [dependencies.linktime-proc-macro]
81 version = "0.2.3"
82 features = ["ctor"]
83 optional = true
84
85 [dev-dependencies.libc-print]
86 version = "0.5"
87
88 [dev-dependencies.macrotest]
89 version = "1"
90
91 [dev-dependencies.tempfile]
92 version = "3"
93
94 [dev-dependencies.trybuild]
95 version = "1"
96
97 [dev-dependencies.walkdir]
98 version = "2"
99
100 [lints.rust.unexpected_cfgs]
101 level = "warn"
102 priority = 0
103 check-cfg = [
104 "cfg(linktime_no_fail_on_missing_unsafe)",
105 "cfg(linktime_used_linker)",
106 "cfg(linktime_asan)",
107 ]