主要改了 vendor/esaxx-rs/build.rs:只在 crt-static 目标下才启用 static_crt(true),用来修复 Windows 下常见的 MSVC 运行库冲突
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
[package]
|
||||
name = "esaxx-rs"
|
||||
version = "0.1.10"
|
||||
authors = ["Nicolas Patry <patry.nicolas@protonmail.com>"]
|
||||
edition = "2018"
|
||||
description = "Wrapping around sentencepiece's esaxxx library."
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://github.com/Narsil/esaxx-rs"
|
||||
documentation = "https://docs.rs/esaxx-rs"
|
||||
repository = "https://github.com/Narsil/esaxx-rs"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
|
||||
[build-dependencies]
|
||||
cc = { version = "1.0", optional = true}
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.5"
|
||||
|
||||
[features]
|
||||
default = ["cpp"]
|
||||
cpp = ["cc"]
|
||||
|
||||
[[bench]]
|
||||
name = "bench_suffix"
|
||||
harness = false
|
||||
|
||||
[[example]]
|
||||
name = "esaxx"
|
||||
required-features = ["cpp"]
|
||||
Reference in New Issue
Block a user