From 776058926a91efe006df57f0d02b3eef65dfe961 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Fri, 25 Mar 2022 13:35:11 +0800 Subject: [PATCH] add new feature link_cpp --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 463cc63..6d9a2d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,10 +36,14 @@ cmake = { version = "0.1", optional = true } all = ["exif", "ugoira"] avdict = ["bindgen", "cmake", "flagset"] exif = ["bindgen", "c_fixed_string", "cmake", "link-cplusplus", "int-enum", "utf16string"] +link_cpp = [] ugoira = ["avdict", "bindgen", "cmake", "link-cplusplus"] [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.9", features = ["winnls", "stringapiset"] } -[target.'cfg(target_env = "gnu")'.dependencies] +[target.'cfg(all(target_env = "gnu", not(feature = "link_cpp")))'.dependencies] link-cplusplus = { version = "1.0", features = ["libstdc++"], optional = true } + +[target.'cfg(all(target_env = "gnu", feature = "link_cpp"))'.dependencies] +link-cplusplus = { version = "1.0", features = ["libc++"], optional = true }