@gjsify/oxfmt-native 0.23.0 → 0.24.2
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 +27 -2
- package/meson.build +9 -1
- package/package.json +4 -4
- package/prebuilds/darwin-arm64/GjsifyOxfmt-1.0.gir +65 -0
- package/prebuilds/darwin-arm64/GjsifyOxfmt-1.0.typelib +0 -0
- package/prebuilds/darwin-arm64/libgjsify_oxfmt.dylib +0 -0
- package/prebuilds/darwin-arm64/libgjsifyoxfmt.dylib +0 -0
- package/prebuilds/{linux-x86_64 → linux-arm64}/GjsifyOxfmt-1.0.typelib +0 -0
- package/prebuilds/linux-arm64/libgjsify_oxfmt.so +0 -0
- package/prebuilds/linux-arm64/libgjsifyoxfmt.so +0 -0
- package/prebuilds/linux-x64/GjsifyOxfmt-1.0.gir +65 -0
- package/prebuilds/linux-x64/GjsifyOxfmt-1.0.typelib +0 -0
- package/prebuilds/linux-x64/libgjsify_oxfmt.so +0 -0
- package/prebuilds/linux-x64/libgjsifyoxfmt.so +0 -0
- package/src/rust/Cargo.lock +1650 -0
- package/src/rust/Cargo.toml +21 -0
- package/prebuilds/linux-x86_64/libgjsify_oxfmt.so +0 -0
- package/prebuilds/linux-x86_64/libgjsifyoxfmt.so +0 -0
- /package/prebuilds/{linux-x86_64 → linux-arm64}/GjsifyOxfmt-1.0.gir +0 -0
package/src/rust/Cargo.toml
CHANGED
|
@@ -32,6 +32,27 @@ oxc_formatter = { path = "../../../../../refs/oxc/crates/oxc_formatter" }
|
|
|
32
32
|
oxc_span = { path = "../../../../../refs/oxc/crates/oxc_span" }
|
|
33
33
|
oxfmt = { path = "../../../../../refs/oxc/apps/oxfmt", default-features = false }
|
|
34
34
|
|
|
35
|
+
# `oxc_allocator` is dogfooded in-tree (the path deps above) AND published to
|
|
36
|
+
# crates.io. Two of the formatter's leaf parsers are only ON crates.io — the
|
|
37
|
+
# `oxc_formatter_{css,graphql}` wrappers live in refs/oxc, but the parsers they
|
|
38
|
+
# call (`oxc-css-parser`, `oxc-graphql-parser`) do not, so they pull
|
|
39
|
+
# `oxc_allocator` from the REGISTRY. Cargo treats registry and path copies as
|
|
40
|
+
# separate crate instances even at the same version, so `&oxc_allocator::Allocator`
|
|
41
|
+
# from the path copy cannot be passed to a parser typed against the registry one
|
|
42
|
+
# (E0308 `there are multiple different versions of crate oxc_allocator`).
|
|
43
|
+
#
|
|
44
|
+
# refs/oxc solves this for its OWN workspace with the identical patch, but a
|
|
45
|
+
# `[patch]` table is only honoured from the ROOT of the workspace being built —
|
|
46
|
+
# path-depping INTO refs/oxc does not inherit it. `gjsify_oxfmt` is a standalone
|
|
47
|
+
# package (no enclosing [workspace]), so it is its own root and must repeat it.
|
|
48
|
+
#
|
|
49
|
+
# Without this the resolution also floats: the parsers require
|
|
50
|
+
# `oxc_allocator >=0.137.0`, so cargo re-picks the newest published version on
|
|
51
|
+
# every build (0.141.0 today) with nothing pinning it. Patching to the path copy
|
|
52
|
+
# collapses the duplicate class AND removes the float in one step.
|
|
53
|
+
[patch.crates-io]
|
|
54
|
+
oxc_allocator = { path = "../../../../../refs/oxc/crates/oxc_allocator" }
|
|
55
|
+
|
|
35
56
|
[profile.release]
|
|
36
57
|
lto = true
|
|
37
58
|
codegen-units = 1
|
|
Binary file
|
|
Binary file
|
|
File without changes
|