Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release cspice-sys 1.0.4, allow cspice usage from different threads #8

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cspice-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cspice-sys"
version = "1.0.3"
version = "1.0.4"
edition = "2021"
build = "build.rs"
description = "Unsafe bindings to the NAIF CSPICE toolkit"
Expand Down
8 changes: 4 additions & 4 deletions cspice-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,25 @@ fn download_cspice(out_dir: &Path) {
match (env::consts::OS, extension) {
("linux" | "macos", "tar.Z") => {
Command::new("gzip")
.current_dir(&out_dir)
.current_dir(out_dir)
.args(["-d", "cspice.tar.Z"])
.status()
.expect("Failed to extract with gzip");
Command::new("tar")
.current_dir(&out_dir)
.current_dir(out_dir)
.args(["xf", "cspice.tar"])
.status()
.expect("Failed to extract with tar");

std::fs::rename(
fs::rename(
out_dir.join("cspice/lib/cspice.a"),
out_dir.join("cspice/lib/libcspice.a"),
)
.unwrap();
}
("windows", "zip") => {
Command::new("tar")
.current_dir(&out_dir)
.current_dir(out_dir)
.args(["xf", "cspice.zip"])
.status()
.expect("Failed to extract with tar");
Expand Down
6 changes: 3 additions & 3 deletions cspice/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cspice"
version = "0.0.1"
version = "0.1.0"
edition = "2021"
description = "Safe wrapper around the NAIF CSPICE toolkit"
license = "LGPL-3.0"
Expand All @@ -10,9 +10,9 @@ repository = "https://github.com/jacob-pro/cspice-rs"

[dependencies]
chrono = { version = "0.4.19", optional = true }
cspice-sys = { path = "../cspice-sys", version = "1.0.3" }
cspice-sys = { path = "../cspice-sys", version = "1.0.4" }
derive_more = "0.99.17"
once_cell = "1.12.0"
parking_lot = "0.12.1"
serde = { version = "1.0.137", features = ["derive"] }
serde_plain = "1.0.0"
thiserror = "1.0.31"
Loading
Loading