Vendor dependencies

Let's see how I like this workflow.
This commit is contained in:
John Doty 2022-12-19 08:27:18 -08:00
parent 34d1830413
commit 9c435dc440
7500 changed files with 1665121 additions and 99 deletions

20
vendor/cxxbridge-flags/src/impl.rs vendored Normal file
View file

@ -0,0 +1,20 @@
#[allow(unused_assignments, unused_mut, unused_variables)]
pub const STD: &str = {
let mut flags = ["-std=c++11", "/std:c++11"];
#[cfg(feature = "c++14")]
(flags = ["-std=c++14", "/std:c++14"]);
#[cfg(feature = "c++17")]
(flags = ["-std=c++17", "/std:c++17"]);
#[cfg(feature = "c++20")]
(flags = ["-std=c++20", "/std:c++20"]);
let [mut flag, msvc_flag] = flags;
#[cfg(target_env = "msvc")]
(flag = msvc_flag);
flag
};

7
vendor/cxxbridge-flags/src/lib.rs vendored Normal file
View file

@ -0,0 +1,7 @@
//! This crate is an implementation detail of the `cxx` and `cxx-build` crates,
//! and does not expose any public API.
mod r#impl;
#[doc(hidden)]
pub use r#impl::*;