Skip to content

Commit

Permalink
🎉 Specta 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Apr 24, 2023
1 parent 216cf15 commit 527a4aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "specta"
description = "Easily export your Rust types to other languages"
version = "1.0.2"
version = "1.0.3"
authors = ["Oscar Beaumont <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "specta-macros"
description = "Macros for specta. Don't use directly!"
version = "1.0.2"
version = "1.0.3"
authors = ["Oscar Beaumont <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tests/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ fn test_export_feature() {
&ExportConfiguration::default().bigint(BigIntExportBehavior::Number),
)
.unwrap();
assert_eq!(fs::read_to_string("./bindings2.ts").unwrap(), "// This file has been generated by Specta. DO NOT EDIT.\n\nexport type DAffine2 = { matrix2: DMat2; translation: DVec2 }\n\nexport type TypeOne = { field1: string; field2: TypeTwo }\n\nexport type IVec2 = { x: number; y: number }\n\nexport type Timestamp = { time: number; id: number }\n\nexport type DMat2 = { x_axis: DVec2; y_axis: DVec2 }\n\nexport type DVec2 = { x: number; y: number }\n\nexport type ReferingToUnexportedType = { a: NotExported }\n\nexport type TypeTwo = { my_field: string }\n\n");
assert_eq!(fs::read_to_string("./bindings2.ts").unwrap(), "// This file has been generated by Specta. DO NOT EDIT.\n\nexport type IVec2 = { x: number; y: number }\n\nexport type TypeOne = { field1: string; field2: TypeTwo }\n\nexport type Timestamp = { time: number; id: number }\n\nexport type DAffine2 = { matrix2: DMat2; translation: DVec2 }\n\nexport type ReferingToUnexportedType = { a: NotExported }\n\nexport type DVec2 = { x: number; y: number }\n\nexport type TypeTwo = { my_field: string }\n\nexport type DMat2 = { x_axis: DVec2; y_axis: DVec2 }\n\n");
fs::remove_file("./bindings2.ts").unwrap();
}

0 comments on commit 527a4aa

Please sign in to comment.