evil-janet

Crates.ioevil-janet
lib.rsevil-janet
version
sourcesrc
created_at2020-07-19 00:56:08.884037
updated_at2024-12-06 03:15:49.674628
descriptionLow level bindings to the janet language c api.
homepage
repositoryhttps://github.com/GrayJack/evil-janet
max_upload_size
id266718
Cargo.toml error:TOML parse error at line 28, column 1 | 28 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Eric Shimizu Karbstein (GrayJack)

documentation

README

evil-janet

This is a rust crate providing low level bindings to the janet C API.

Versioning scheme

The package major and minor versions follow the janet releases the bundled headers are compatible with. The patch version may, but does not necessarily match the janet release.

Feature flags

  • link-amalg: The crate will link the compiled Janet amalgamation
  • link-system: Link to the libjanet library from the system (not recommended generally)
  • system: Use Janet header from the system
  • debug-symbols: Compile with max debug symbols

if the feature link-amalg is enabled, the crate will link the compiled janet amalgamation, otherwise this crate is header only, which is useful for building standalone janet modules.

Environment variables

These variables are only used when using the feature link-amalg

This crate uses environment variables to overwrite some Janet definitions.

  • JANET_RECURSION_GUARD=<integer>
  • JANET_MAX_PROTO_DEPTH=<integer>
  • JANET_MAX_MACRO_EXPAND=<integer>
  • JANET_STACK_MAX=<integer>

Safety

This crate makes no attempt memory safety. It is the bare minimum required to use the Janet API from Rust. For a higher level crate you can look for JanetRS.

Commit count: 97

cargo fmt