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