タグ

ブックマーク / napi.rs (2)

  • Announcing NAPI-RS v2 – NAPI-RS

    Announcing NAPI-RS v2 🦀 NAPI-RS v2 - Faster 🚀 (opens in a new tab) , Easier to use, and compatible improvements. 📅 2021/12/17 We are proudly announcing the release of NAPI-RS v2. This is the biggest release of NAPI-RS ever. - A minimal library for building compiled Node.js add-ons in Rust via Node-API + A framework for building compiled Node.js add-ons in Rust via Node-API Work for v2 started o

    Announcing NAPI-RS v2 – NAPI-RS
    Shisama
    Shisama 2022/01/18
    #[napi]マクロで書きやすくなってる。RustのコードからTypeScriptの型を生成するようになったり、napi-rsで作ったモジュールを使いやすくもなってる。ベータ版はSWC、Prisma、Parcelでテスト済。WASMやDeno FFIのサポートも予定
  • Home – NAPI-RS

    use napi_derive::napi; #[napi] fn fibonacci(n: u32) -> u32 { match n { 1 | 2 => 1, _ => fibonacci(n - 1) + fibonacci(n - 2), } }

    Home – NAPI-RS
    Shisama
    Shisama 2021/11/16
    Node-APIを使ったNode.jsのネイティブ拡張をRustで書けるようにするcrate
  • 1