Skip to content

Commit

Permalink
0.17.8
Browse files Browse the repository at this point in the history
  • Loading branch information
avl committed Oct 2, 2024
1 parent 8cb263d commit 5c067cc
Show file tree
Hide file tree
Showing 8 changed files with 371 additions and 13 deletions.
158 changes: 155 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ See the docs for more information, including schema-versioning: https://docs.rs/

# Changelog

## 0.17.8

Support for some nalgebra types.

## 0.17.7

Support for BTreeSet.
Expand Down
6 changes: 3 additions & 3 deletions savefile-abi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "savefile-abi"
version = "0.17.7"
version = "0.17.8"
edition = "2021"
authors = ["Anders Musikka <[email protected]>"]
documentation = "https://docs.rs/savefile-abi/"
Expand All @@ -17,8 +17,8 @@ keywords = ["dylib", "dlopen", "ffi"]
license = "MIT/Apache-2.0"

[dependencies]
savefile = { path="../savefile", version = "=0.17.7" }
savefile-derive = { path="../savefile-derive", version = "=0.17.7" }
savefile = { path="../savefile", version = "=0.17.8" }
savefile-derive = { path="../savefile-derive", version = "=0.17.8" }
byteorder = "1.4"
libloading = "0.8"

Expand Down
2 changes: 1 addition & 1 deletion savefile-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "savefile-derive"
version = "0.17.7"
version = "0.17.8"
authors = ["Anders Musikka <[email protected]>"]
repository = "https://github.com/avl/savefile"
rust-version = "1.74"
Expand Down
6 changes: 3 additions & 3 deletions savefile-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ external_benchmarks = []
nightly=["savefile/nightly"]

[dependencies]
savefile = { path = "../savefile", features = ["size_sanity_checks", "encryption", "compression","bit-set","bit-vec","rustc-hash","serde_derive", "quickcheck"]}
savefile-derive = { path = "../savefile-derive", version = "=0.17.7" }
savefile = { path = "../savefile", features = ["size_sanity_checks", "encryption", "compression","bit-set","bit-vec","rustc-hash","serde_derive", "quickcheck", "nalgebra"]}
savefile-derive = { path = "../savefile-derive", version = "=0.17.8" }
savefile-abi = { path = "../savefile-abi" }
bit-vec = "0.8"
arrayvec="0.7"
Expand All @@ -29,7 +29,7 @@ rustc-hash="1.1"
quickcheck="1.0"
quickcheck_macros ="1.0"
insta = { version = "1.38.0", features = ["yaml"] }

nalgebra="0.33"
[build-dependencies]
rustc_version="0.4"

20 changes: 20 additions & 0 deletions savefile-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ extern crate quickcheck;
#[macro_use(quickcheck)]
extern crate quickcheck_macros;

extern crate nalgebra;
extern crate serde;
#[macro_use]
extern crate serde_derive;
Expand Down Expand Up @@ -1711,3 +1712,22 @@ fn dummy_test() {
let r = simple_add_call(&conn, 1, 2);
assert_eq!(r, 3);
}

#[test]
fn test_isometry() {
let iso = nalgebra::Isometry3::<f64>::from_parts(
nalgebra::Point3::new(0.0,1.0,2.0).into(),
nalgebra::UnitQuaternion::from_euler_angles(0.0,1.0,2.0),
);
assert_roundtrip(iso);
}
#[test]
fn test_points() {
let a = [nalgebra::Point3::new(1.0,2.0,3.0),nalgebra::Point3::new(4.0,5.0,6.0)];
assert_roundtrip(a);
}
#[test]
fn test_vector() {
let a = [nalgebra::Point3::new(1.5,2.5,3.0),nalgebra::Point3::new(4.0,5.5,6.0)];
assert_roundtrip(a);
}
7 changes: 4 additions & 3 deletions savefile/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "savefile"
version = "0.17.7"
version = "0.17.8"
authors = ["Anders Musikka <[email protected]>"]
documentation = "https://docs.rs/savefile/"
homepage = "https://github.com/avl/savefile/"
Expand Down Expand Up @@ -49,6 +49,7 @@ derive = ["dep:savefile-derive"]

[dependencies]
bit-vec = { version = "0.6", optional = true}
nalgebra = { version = "0.33", optional = true}
bit-vec08 = { package="bit-vec", version = "0.8", optional = true}
arrayvec = { version = "0.7", optional = true}
smallvec = { version = "1.11", optional = true}
Expand All @@ -62,13 +63,13 @@ bit-set08 = {package="bit-set", version = "0.8", optional = true}
rustc-hash = {version = "1.1", optional = true}
memoffset = "0.9"
byteorder = "1.4"
savefile-derive = {path="../savefile-derive", version = "=0.17.7", optional = true }
savefile-derive = {path="../savefile-derive", version = "=0.17.8", optional = true }
serde_derive = {version= "1.0", optional = true}
serde = {version= "1.0", optional = true}
quickcheck = {version= "1.0", optional = true}

[dev-dependencies]
savefile-derive = { path="../savefile-derive", version = "=0.17.7" }
savefile-derive = { path="../savefile-derive", version = "=0.17.8" }

[build-dependencies]
rustc_version="0.2"
Expand Down
Loading

0 comments on commit 5c067cc

Please sign in to comment.