mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-22 21:09:58 +00:00
clippy::string_to_string has been replaced by implicit_clone, so lancedb will raise a build error in Rust 1.91. This PR suppresses it. --- **This PR was primarily authored with Codex using GPT-5-Codex and then hand-reviewed by me. I AM responsible for every change made in this PR. I aimed to keep it aligned with our goals, though I may have missed minor issues. Please flag anything that feels off, I'll fix it quickly.** Signed-off-by: Xuanwo <github@xuanwo.io>
52 lines
1.5 KiB
TOML
52 lines
1.5 KiB
TOML
[profile.release]
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
|
|
[profile.release-with-debug]
|
|
inherits = "release"
|
|
debug = true
|
|
# Prioritize compile time over runtime performance
|
|
codegen-units = 16
|
|
lto = "thin"
|
|
|
|
[target.'cfg(all())']
|
|
rustflags = [
|
|
"-Wclippy::all",
|
|
"-Wclippy::style",
|
|
"-Wclippy::fallible_impl_from",
|
|
"-Wclippy::manual_let_else",
|
|
"-Wclippy::redundant_pub_crate",
|
|
"-Wclippy::string_add_assign",
|
|
"-Wclippy::string_add",
|
|
"-Wclippy::string_lit_as_bytes",
|
|
"-Wclippy::implicit_clone",
|
|
"-Wclippy::use_self",
|
|
"-Dclippy::cargo",
|
|
"-Dclippy::dbg_macro",
|
|
# not too much we can do to avoid multiple crate versions
|
|
"-Aclippy::multiple-crate-versions",
|
|
"-Aclippy::wildcard_dependencies",
|
|
]
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
rustflags = ["-C", "target-cpu=haswell", "-C", "target-feature=+avx2,+fma,+f16c"]
|
|
|
|
[target.x86_64-unknown-linux-musl]
|
|
rustflags = ["-C", "target-cpu=haswell", "-C", "target-feature=-crt-static,+avx2,+fma,+f16c"]
|
|
|
|
[target.aarch64-unknown-linux-musl]
|
|
linker = "aarch64-linux-musl-gcc"
|
|
rustflags = ["-C", "target-feature=-crt-static"]
|
|
|
|
[target.aarch64-apple-darwin]
|
|
rustflags = ["-C", "target-cpu=apple-m1", "-C", "target-feature=+neon,+fp16,+fhm,+dotprod"]
|
|
|
|
# Not all Windows systems have the C runtime installed, so this avoids library
|
|
# not found errors on systems that are missing it.
|
|
[target.x86_64-pc-windows-msvc]
|
|
rustflags = ["-Ctarget-feature=+crt-static"]
|
|
|
|
# Experimental target for Arm64 Windows
|
|
[target.aarch64-pc-windows-msvc]
|
|
rustflags = ["-Ctarget-feature=+crt-static"]
|