Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Jan 31, 2024
1 parent 1616651 commit 9aa6e15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository.workspace = true

[lib]
name = "frontend"
path = "/dev/null"
path = "bindings.rs"
crate-type = ["lib"]

[build-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions frontend/frontend.rs → frontend/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Some structs that must be redefined for transpiling without changing actual types on backend

use tsync::tsync;

#[tsync]
pub type Hostname = String;
2 changes: 1 addition & 1 deletion frontend/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn build_types() {

inputs[0].push("backend");
inputs[1].push("frontend");
inputs[1].push("frontend.rs");
inputs[1].push("bindings.rs");
output.push("src/types/rust.d.ts");

tsync::generate_typescript_defs(inputs, output, false);
Expand Down

0 comments on commit 9aa6e15

Please sign in to comment.