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
|
||||
=========
|
||||
|
||||
|
@ -4,6 +4,8 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[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 = ".." }
|
||||
|
||||
[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
|
||||
========
|
||||
|
||||
|
@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
# [unreleased]
|
||||
|
||||
# [v0.1.1] 2024-06-01
|
||||
|
||||
Try to fix the documentation build.
|
||||
|
||||
# [v0.1.0] 2024-06-01
|
||||
|
||||
Initial release
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "libcsp-sys"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
||||
description = "FFI bindings for libcsp"
|
||||
|
@ -1,3 +1,6 @@
|
||||
[](https://crates.io/crates/libcsp-sys)
|
||||
[](https://docs.rs/libcsp-sys)
|
||||
|
||||
libcsp-sys
|
||||
========
|
||||
|
||||
|
@ -15,19 +15,24 @@ fn main() {
|
||||
println!("cargo:rustc-link-lib=csp");
|
||||
}
|
||||
|
||||
let out_path = env::var("OUT_DIR").unwrap();
|
||||
let csp_conf_dir = match env::var(ENV_KEY_CSP_CONFIG_DIR) {
|
||||
Ok(conf_path) => conf_path,
|
||||
Err(_e) => {
|
||||
println!(
|
||||
let mut csp_conf_path = if std::env::var("DOCS_RS").is_ok() {
|
||||
PathBuf::from("./templates")
|
||||
} else {
|
||||
match env::var(ENV_KEY_CSP_CONFIG_DIR) {
|
||||
Ok(conf_path) => conf_path.into(),
|
||||
Err(_e) => {
|
||||
println!(
|
||||
"cargo:warning={} not set, using CARGO_MANIFEST_DIR to search for autoconfig.rs",
|
||||
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");
|
||||
if !csp_conf_path.exists() {
|
||||
panic!(
|
||||
|
Reference in New Issue
Block a user