Compare commits
5 Commits
libcsp-v0.
...
libcsp-sys
Author | SHA1 | Date | |
---|---|---|---|
1f4e552c52
|
|||
6cf745c316
|
|||
f1ec2158d9
|
|||
6f8ffb7412
|
|||
4bd6d1cb88
|
@ -1,3 +1,6 @@
|
|||||||
|
[](https://crates.io/crates/libcsp)
|
||||||
|
[](https://docs.rs/libcsp)
|
||||||
|
|
||||||
libcsp-rust
|
libcsp-rust
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
# Must use local verion here, otherwise there will be multiple versions of `libcsp-sys`, and
|
||||||
|
# cargo can not deal with this due to the link section.
|
||||||
libcsp = { version = "0.1", path = ".." }
|
libcsp = { version = "0.1", path = ".." }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@ -1 +0,0 @@
|
|||||||
|
|
@ -1,3 +1,6 @@
|
|||||||
|
[](https://crates.io/crates/libcsp-cargo-build)
|
||||||
|
[](https://docs.rs/libcsp-cargo-build)
|
||||||
|
|
||||||
libcsp-cargo-build
|
libcsp-cargo-build
|
||||||
========
|
========
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
# [v0.1.1] 2024-06-01
|
||||||
|
|
||||||
|
Try to fix the documentation build.
|
||||||
|
|
||||||
# [v0.1.0] 2024-06-01
|
# [v0.1.0] 2024-06-01
|
||||||
|
|
||||||
Initial release
|
Initial release
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "libcsp-sys"
|
name = "libcsp-sys"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
||||||
description = "FFI bindings for libcsp"
|
description = "FFI bindings for libcsp"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
[](https://crates.io/crates/libcsp-sys)
|
||||||
|
[](https://docs.rs/libcsp-sys)
|
||||||
|
|
||||||
libcsp-sys
|
libcsp-sys
|
||||||
========
|
========
|
||||||
|
|
||||||
|
@ -15,19 +15,24 @@ fn main() {
|
|||||||
println!("cargo:rustc-link-lib=csp");
|
println!("cargo:rustc-link-lib=csp");
|
||||||
}
|
}
|
||||||
|
|
||||||
let out_path = env::var("OUT_DIR").unwrap();
|
let mut csp_conf_path = if std::env::var("DOCS_RS").is_ok() {
|
||||||
let csp_conf_dir = match env::var(ENV_KEY_CSP_CONFIG_DIR) {
|
PathBuf::from("./templates")
|
||||||
Ok(conf_path) => conf_path,
|
} else {
|
||||||
Err(_e) => {
|
match env::var(ENV_KEY_CSP_CONFIG_DIR) {
|
||||||
println!(
|
Ok(conf_path) => conf_path.into(),
|
||||||
|
Err(_e) => {
|
||||||
|
println!(
|
||||||
"cargo:warning={} not set, using CARGO_MANIFEST_DIR to search for autoconfig.rs",
|
"cargo:warning={} not set, using CARGO_MANIFEST_DIR to search for autoconfig.rs",
|
||||||
ENV_KEY_CSP_CONFIG_DIR
|
ENV_KEY_CSP_CONFIG_DIR
|
||||||
);
|
);
|
||||||
env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set")
|
env::var("CARGO_MANIFEST_DIR")
|
||||||
|
.expect("CARGO_MANIFEST_DIR not set")
|
||||||
|
.into()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let mut csp_conf_path = PathBuf::new();
|
|
||||||
csp_conf_path.push(csp_conf_dir);
|
let out_path = env::var("OUT_DIR").unwrap();
|
||||||
csp_conf_path.push("autoconfig.rs");
|
csp_conf_path.push("autoconfig.rs");
|
||||||
if !csp_conf_path.exists() {
|
if !csp_conf_path.exists() {
|
||||||
panic!(
|
panic!(
|
||||||
|
Reference in New Issue
Block a user