@crossbind/core-embind-rust 2.0.0-beta.67 → 2.0.0-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ in the app config and just `use` them:
|
|
|
102
102
|
```js
|
|
103
103
|
// crossbind.config.mjs
|
|
104
104
|
export default {
|
|
105
|
-
|
|
105
|
+
packages: { cargo: { geo: '0.29', wkt: '0.11' } },
|
|
106
106
|
...
|
|
107
107
|
};
|
|
108
108
|
```
|
|
@@ -122,7 +122,7 @@ ships none.
|
|
|
122
122
|
### Direct crate import (no surface file at all)
|
|
123
123
|
|
|
124
124
|
When an upstream crate's own API already fits the grammar, skip even the surface file: any
|
|
125
|
-
name declared in `
|
|
125
|
+
name declared in `packages.cargo` can be imported through the `cargo:` scheme (the
|
|
126
126
|
node:/npm:/jsr: convention for a non-npm store), and the bridge is generated from the crate's
|
|
127
127
|
OWN multi-file source (types from lib.rs; inherent impls and `impl Display` collected across
|
|
128
128
|
its `mod` files, following the cargo-resolved feature set):
|
|
@@ -130,7 +130,7 @@ its `mod` files, following the cargo-resolved feature set):
|
|
|
130
130
|
```js
|
|
131
131
|
// crossbind.config.mjs
|
|
132
132
|
export default {
|
|
133
|
-
|
|
133
|
+
packages: { cargo: { uuid: '{ version = "1", features = ["v4"] }' } },
|
|
134
134
|
};
|
|
135
135
|
```
|
|
136
136
|
|
|
@@ -228,7 +228,7 @@ React Native and native Node.js. `e2e/conformance-rust` checks each Rust constru
|
|
|
228
228
|
| mobile: real Hermes / device smoke (Android emulator, same RN app) | ✅ GREEN 32/32 — same demo, same adapter; cargo dep joins the cmake depends graph, keep-symbol linked; a NEW bare-crate import now links in the FIRST build (rust set busts the CMake configure) |
|
|
229
229
|
| app-local `.rs` import (`./native/counter.rs`, both mobile platforms) | ✅ GREEN — synthesized bridge crate + app super staticlib + typed `counter.rs.d.ts` |
|
|
230
230
|
| typed package import (`import { X } from '@crossbind/embind-rust-demo'`) | ✅ GREEN on iOS, Android AND web (vite) — resolver + proxy module + generated d.ts; web verified by playwright on chromium/firefox/webkit |
|
|
231
|
-
| real-world upstream crate, packageless (`geo` via `
|
|
231
|
+
| real-world upstream crate, packageless (`geo` via `packages.cargo` + app-local surface) | ✅ GREEN — Hull (ConvexHull) on iOS + Android (26/26 smoke) AND in the browser (worker-mode playwright, 3 browsers): the same surface .rs serves all three platforms — a wasm output upstream geo never shipped |
|
|
232
232
|
| Rust idioms: `&str`/`&String` params, `Result` → JS exception, `Option<Self>` → null | ✅ GREEN — conformance kit on every leg, worker-mode playwright on 3 browsers, iOS sim + Android emulator (throw message, null, borrowed str all asserted) |
|
|
233
233
|
| i64/u64 → BigInt, `impl Display` → toString(), top-level free functions | ✅ GREEN — same full bar (conformance kit on every leg, 3-browser worker playwright, both devices); u64::MAX round-trips exactly, free `Result` fns throw |
|
|
234
234
|
| DIRECT crate import (`import { Uuid } from 'cargo:uuid'` — untouched crates.io source, multi-file parse, feature-gated modules) | ✅ GREEN — worker-mode playwright on 3 browsers + iOS sim + Android emulator 26/26 (newV4 format, parse roundtrip, Display toString, Err throws) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossbind/core-embind-rust",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.72",
|
|
4
4
|
"description": "Rust producer for the crossbind embind registration protocol - bind Rust structs as classes reachable from JS on web (embind) and mobile (embind-jsi). Research/spike stage.",
|
|
5
5
|
"homepage": "https://github.com/crossbind/crossbind/tree/main/core/embind-rust#readme",
|
|
6
6
|
"repository": {
|