try to fix libcsp dependency chain

This commit is contained in:
Robin Müller 2024-06-01 19:14:27 +02:00
parent d8d3fbe15a
commit 3710be2d70
Signed by: muellerr
GPG Key ID: A649FB78196E3849
4 changed files with 18 additions and 5 deletions

11
Cargo.lock generated
View File

@ -59,12 +59,21 @@ dependencies = [
"cc", "cc",
] ]
[[package]]
name = "libcsp-cargo-build"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "554733e90f35324f10e32b4e848f5c85eb28cd099c5015d9fbe869f3b5a59944"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "libcsp-rust-examples" name = "libcsp-rust-examples"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"libcsp", "libcsp",
"libcsp-cargo-build", "libcsp-cargo-build 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]

View File

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
libcsp = { path = "../libcsp" } libcsp = "0.1"
[build-dependencies] [build-dependencies]
libcsp-cargo-build = { path = "../libcsp-cargo-build" } libcsp-cargo-build = "0.1"

View File

@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
# [unreleased] # [unreleased]
# [v0.1.1] 2024-06-01
Possible bugfix with dependency resolver not being able to select the correct `-sys` crate.
# [v0.1.0] 2024-06-01 # [v0.1.0] 2024-06-01
Initial release Initial release

View File

@ -1,6 +1,6 @@
[package] [package]
name = "libcsp" name = "libcsp"
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 = "Safe and ergonomic Rust API for libcsp on top on libcsp-sys" description = "Safe and ergonomic Rust API for libcsp on top on libcsp-sys"
@ -15,4 +15,4 @@ categories = ["aerospace", "external-ffi-bindings", "no-std", "hardware-support"
bitflags = "2" bitflags = "2"
num_enum = "0.7" num_enum = "0.7"
libc = "0.2" libc = "0.2"
libcsp-sys = { version = "0.1", path = "../libcsp-sys" } libcsp-sys = "0.1"