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 d5cf7d8 commit 7748838Copy full SHA for 7748838
2 files changed
.github/workflows/ci.yml
@@ -208,4 +208,5 @@ jobs:
208
- name: Publish
209
run: cargo ws publish --publish-as-is
210
env:
211
+ TS_FFI_BUILDRS_STRICT: 1
212
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
ts_ffi/build.rs
@@ -11,7 +11,11 @@ fn main() {
11
.generate()
12
.unwrap();
13
14
- bindings.write_to_file("tailscale.h");
+ // We're not supposed to generate anything outside of `OUT_DIR`, but it's useful
15
+ // as a convenience. Turn it off with this var (for use with publish).
16
+ if env::var("TS_FFI_BUILDRS_STRICT").is_err_and(|e| e == env::VarError::NotPresent) {
17
+ bindings.write_to_file("tailscale.h");
18
+ }
19
20
let out = env::var("OUT_DIR").unwrap();
21
let out = PathBuf::from(out);
0 commit comments