We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1616651 commit 9aa6e15Copy full SHA for 9aa6e15
frontend/Cargo.toml
@@ -10,7 +10,7 @@ repository.workspace = true
10
11
[lib]
12
name = "frontend"
13
-path = "/dev/null"
+path = "bindings.rs"
14
crate-type = ["lib"]
15
16
[build-dependencies]
frontend/frontend.rs renamed to frontend/bindings.rs
@@ -1,4 +1,6 @@
1
// Some structs that must be redefined for transpiling without changing actual types on backend
2
3
+use tsync::tsync;
4
+
5
#[tsync]
6
pub type Hostname = String;
frontend/build.rs
@@ -62,7 +62,7 @@ pub fn build_types() {
62
63
inputs[0].push("backend");
64
inputs[1].push("frontend");
65
- inputs[1].push("frontend.rs");
+ inputs[1].push("bindings.rs");
66
output.push("src/types/rust.d.ts");
67
68
tsync::generate_typescript_defs(inputs, output, false);
0 commit comments