Skip to content
kixel-aiPublic

About

Rust experiments

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

rust2

Rust to other places.

  • TypeScript: an own rustc driver that translates a documented Rust subset to TypeScript, without WASM.
  • C, then any language: an exporter that turns a crate's pub API into a C ABI and header with no attributes, sharing the TypeScript driver's front end, and generates bindings over it in C++, Kotlin, Python, Swift, Go, Dart, and TypeScript for the web. The flake's ffi package is the one to pin. Its release builder turns an export into checked Python wheels and a Swift package, published by the crate's own workflow.
  • Public-visibility audit: rust2-pub, on the drivers' front end, finds the pub items no other crate needs and validates narrowing them.
  • Faster builds: a reproducible build-speed benchmark of upstream's levers on moq.
  • Benchmarks: swole, which counts the binding benchmark's instructions, lives in its own repository; just ffi bench times it.

Everything here is early; the quest tree holds the plan.

Development

nix develop   # or direnv allow
just ci       # just check, then just test, as the merge queue runs them

License

Licensed under either MIT or Apache-2.0, at your option.

About

Rust experiments

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages