racket-sys 0.2.0

Low level Racket language bindings for Rust
docs.rs failed to build racket-sys-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

racket-sys

crates.io

Low level Racket language bindings for Rust

About Racket: https://racket-lang.org/.

Prerequisites:

  • Base env:

    • Rust toolchain
    • Clang toolchain
    • Racket installation
    • Set environment variables (see below)
  • Windows:

    • Visual Studio is installed
    • Run cargo in Developer PowerShell for VS
  • MacOS:

    • Xcode CommandLine tools is installed
    • iconv, ncurses development libraries
  • Linux:

    • Only tested on Ubuntu 24.04
    • Racket is installed through APT
    • libncurses-dev, liblz4-dev, libzstd-dev development libraries

Environment Variables:

  • RACKET_CS_VERSION: Only for MacOS. If not set, default to 8.13.

  • RACKET_CS_HOME: Racket installation directory. If not set, default to:

    • Windows: C:\Program Files\Racket
    • MacOS: /Applications/Racket v{RACKET_CS_VERSION}
    • Linux: /usr

Examples:

Read https://docs.racket-lang.org/inside/cs-embedding.html for more information on how to embed Racket in your application.

TODO:

  • Windows support
  • MacOS support
  • Linux support