Skip to content

Commit 69156d7

Browse files
committed
fix ctor not found
1 parent e48ba91 commit 69156d7

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,14 @@ winsafe = { version = "0.0.24", features = ["kernel"] }
125125
xxhash-rust = { version = "0.8.15", features = ["const_xxh3"] }
126126

127127
[workspace.metadata.cargo-shear]
128-
# These are artifact dependencies. They are not directly `use`d in Rust code.
129-
ignored = ["fspy_preload_unix", "fspy_preload_windows", "fspy_test_bin"]
128+
ignored = [
129+
# These are artifact dependencies. They are not directly `use`d in Rust code.
130+
"fspy_preload_unix",
131+
"fspy_preload_windows",
132+
"fspy_test_bin",
133+
# used in a macro in crates/fspy_test_utils/src/lib.rs
134+
"ctor",
135+
]
130136

131137
[profile.dev]
132138
# Disabling debug info speeds up local and CI builds,

crates/fspy/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ tempfile = { workspace = true }
4545
[dev-dependencies]
4646
anyhow = { workspace = true }
4747
csv-async = { workspace = true }
48+
ctor = { workspace = true }
4849
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs", "io-std"] }
4950

5051
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dev-dependencies]

crates/fspy_test_utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ macro_rules! command_executing {
1818
assert_arg_type(&$arg, $f);
1919

2020
// Register an initializer that runs the provided function when the process is started
21-
#[ctor::ctor]
21+
#[::ctor::ctor]
2222
unsafe fn init() {
2323
$crate::init_impl(ID, $f);
2424
}

0 commit comments

Comments
 (0)