Playground ≡ P ackagesS amplesR unRuns without a compile until the C++, Rust, packages or imports change.
Files Code Console
[■ ] Project main.js native/native.cpp × native/native.h × crossbind.config.js [+] New file [■ ] main.js 1 import { initNative, greet, add } from './native/native.h' ;
await initNative();
console.log(await greet('crossbind' ));
console.log('2 + 3 =' , await add(2 , 3 ));
[■ ] Output Press Run, or Ctrl+Enter, to run main.js. An unedited sample runs at once, from a module built with this site. Change its C++, Rust, packages or imports and Run compiles the project in a sandbox without network access: 45 seconds and 2 GB of memory at most, a few compiles a day per network, more once you sign in.
Your sources are deleted after the build.
Tutorial · Privacy
Add package
Add a package
(•) crossbind ports 9 ( ) crates.io 3 ( ) ConanCenter 4
expat A streaming XML parser · 2.10.0 [ ] iconv Character set conversion · 1.19.1 [ ] jpegturbo JPEG encoding and decoding · 3.2.1 [ ] lerc Limited Error Raster Compression · 4.3.0 [ ] sqlite3 The SQL database engine · 3.54.1 [ ] tiff TIFF images · 4.7.2 [ ] webp WebP image encoding and decoding · 1.6.0 [ ] zlib Deflate compression · 1.4 [ ] zstd Fast lossless compression · 1.5.7 [ ] Goes into your C++ under native/ Copy
OK
[■ ]