hickory-proto bindings for NodeJS using Neon
Building hickory-proto-neon requires a supported version of Node and Rust.
To run the build, run:
$ pnpm build
This command uses the @neon-rs/cli utility to assemble the binary Node addon from the output of cargo
.
After building hickory-proto, you can explore its exports at the Node console:
$ pnpm i --frozen-lockfile
$ pnpm build
$ node
> require('.').createAnswer()
In the project directory, you can run:
Builds the Node addon (index.node
) from source, generating a release build with cargo --release
.
Additional cargo build
arguments may be passed to pnpm build
and similar commands. For example, to enable a cargo feature:
pnpm build
Similar to pnpm build
but generates a debug build with cargo
.
Similar to pnpm build
but uses cross-rs to cross-compile for another platform. Use the CARGO_BUILD_TARGET
environment variable to select the build target.
Initiate a full build and publication of a new patch release of this library via GitHub Actions.
Initiate a dry run of a patch release of this library via GitHub Actions. This performs a full build but does not publish the final result.
Runs the unit tests by calling cargo test
. You can learn more about adding tests to your Rust code from the Rust book.
Learn more about: