@treatjs/ant-sdk
v0.1.0-ant-sdk.33ae7017faf9
Published
Meta package for the Treat Ant native SDK. Installs the platform-specific prebuilt SDK for the current host.
Readme
@treatjs/ant-sdk
Meta package for the Treat Ant native SDK. If you don't know what treat or treat-ant-bridge is, stay tuned!
Versioning is <ABI>.ant-sdk.<ant commit hash>[.version]. ABI should match with your treat-ant-bridge crate version.
Install the latest version of the ant sdk for your platform with:
"@treatjs/ant-sdk": "abi-0.1.0"where 0.1.0 is your treat-ant-bridge version.
Installing this package pulls in the platform-specific prebuilt SDK for the
current host via optionalDependencies:
| Package | Cargo target |
| --- | --- |
| @treatjs/ant-sdk-darwin-arm64 | aarch64-apple-darwin |
| @treatjs/ant-sdk-darwin-x64 | x86_64-apple-darwin |
| @treatjs/ant-sdk-linux-x64-gnu | x86_64-unknown-linux-gnu |
| @treatjs/ant-sdk-linux-x64-musl | x86_64-unknown-linux-musl |
| @treatjs/ant-sdk-linux-arm64-gnu | aarch64-unknown-linux-gnu |
| @treatjs/ant-sdk-linux-arm64-musl | aarch64-unknown-linux-musl |
| @treatjs/ant-sdk-win32-x64-gnu | x86_64-pc-windows-gnu (MinGW) |
Each platform package ships a sdk/ directory:
sdk/
include/ treat_ant_bridge.h, ant.h, pkg.h
lib/ libtreat_ant_bridge_helpers.a, libtreat_ant_native.a
metadata/sdk.json
LICENSES/treat-ant-bridge's default build script locates this SDK automatically via
node_modules/@treatjs/ant-sdk-<platform>, or explicitly via
TREAT_ANT_SDK_PATH pointing at either the package directory or its sdk/
directory.
Releasing
Platform packages are produced by treat-ant-bridge/scripts/package_sdk.sh.
The release process must:
- Fetch the pinned Ant source with
scripts/fetch_ant_source.sh. - Build Ant for the target (via the Nix/Meson flow or a cross toolchain).
- Run
scripts/package_sdk.sh <out> --target <triple>. - Copy the resulting
sdk/into the matching platform package directory. - Populate
sdk/LICENSES/with notices for every bundled vendor dependency. - Publish the platform packages, then the meta package.
See treat-ant-bridge/README.md for the full build model.
