Skip to content

Commit

Permalink
Release cspice-sys 1.0.4, allow cspice usage from different threads (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-pro authored Dec 17, 2023
1 parent 43c749a commit 736cc37
Show file tree
Hide file tree
Showing 15 changed files with 534 additions and 472 deletions.
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

0 comments on commit 736cc37

Please sign in to comment.