Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,5 @@ jobs:
- name: Publish
run: cargo ws publish --publish-as-is
env:
TS_FFI_BUILDRS_STRICT: 1
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
6 changes: 5 additions & 1 deletion ts_ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ fn main() {
.generate()
.unwrap();

bindings.write_to_file("tailscale.h");
// We're not supposed to generate anything outside of `OUT_DIR`, but it's useful
// as a convenience. Turn it off with this var (for use with publish).
if env::var("TS_FFI_BUILDRS_STRICT").is_err_and(|e| e == env::VarError::NotPresent) {
bindings.write_to_file("tailscale.h");
}

let out = env::var("OUT_DIR").unwrap();
let out = PathBuf::from(out);
Expand Down
Loading