@gjsify/lightningcss-native 0.22.0 → 0.24.1

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.
Files changed (24) hide show
  1. package/README.md +21 -1
  2. package/lib/esm/index.gjs.spec.js +1 -0
  3. package/lib/esm/index.js +1 -1
  4. package/meson.build +51 -4
  5. package/package.json +19 -7
  6. package/prebuilds/darwin-arm64/GjsifyLightningcss-1.0.gir +87 -0
  7. package/prebuilds/darwin-arm64/GjsifyLightningcss-1.0.typelib +0 -0
  8. package/prebuilds/darwin-arm64/libgjsify_lightningcss.dylib +0 -0
  9. package/prebuilds/darwin-arm64/libgjsifylightningcss.dylib +0 -0
  10. package/prebuilds/{linux-aarch64 → linux-arm64}/libgjsify_lightningcss.so +0 -0
  11. package/prebuilds/{linux-aarch64 → linux-arm64}/libgjsifylightningcss.so +0 -0
  12. package/prebuilds/linux-ppc64/libgjsify_lightningcss.so +0 -0
  13. package/prebuilds/linux-ppc64/libgjsifylightningcss.so +0 -0
  14. package/prebuilds/linux-riscv64/libgjsify_lightningcss.so +0 -0
  15. package/prebuilds/linux-riscv64/libgjsifylightningcss.so +0 -0
  16. package/prebuilds/linux-s390x/GjsifyLightningcss-1.0.typelib +0 -0
  17. package/prebuilds/linux-s390x/libgjsify_lightningcss.so +0 -0
  18. package/prebuilds/linux-s390x/libgjsifylightningcss.so +0 -0
  19. package/prebuilds/{linux-x86_64 → linux-x64}/libgjsify_lightningcss.so +0 -0
  20. package/prebuilds/{linux-x86_64 → linux-x64}/libgjsifylightningcss.so +0 -0
  21. /package/prebuilds/{linux-aarch64 → linux-arm64}/GjsifyLightningcss-1.0.gir +0 -0
  22. /package/prebuilds/{linux-aarch64 → linux-arm64}/GjsifyLightningcss-1.0.typelib +0 -0
  23. /package/prebuilds/{linux-x86_64 → linux-x64}/GjsifyLightningcss-1.0.gir +0 -0
  24. /package/prebuilds/{linux-x86_64 → linux-x64}/GjsifyLightningcss-1.0.typelib +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @gjsify/lightningcss-native
2
2
 
3
- A native Rust cdylib + Vala/GObject bridge that exposes the Rust `lightningcss` CSS transformer and minifier to GJS via `gi://`. Ships prebuilt `.so` + `.typelib` for Linux and is loaded lazily at runtime — the consuming package (`@gjsify/rolldown-plugin-gjsify`'s `cssAsStringPlugin`) falls back to the npm `lightningcss` package when the prebuild is unavailable.
3
+ A native Rust cdylib + Vala/GObject bridge that exposes the Rust `lightningcss` CSS transformer and minifier to GJS via `gi://`. Ships prebuilt native libraries + typelibs for Linux and macOS (see [Platform coverage](#platform-coverage)) and is loaded lazily at runtime — the consuming package (`@gjsify/rolldown-plugin-gjsify`'s `cssAsStringPlugin`) falls back to the npm `lightningcss` package when the prebuild is unavailable.
4
4
 
5
5
  Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
6
6
 
@@ -32,6 +32,26 @@ if (hasNativeLightningcss()) {
32
32
 
33
33
  The native bridge is consumed automatically by `gjsify build --app gjs` via `@gjsify/rolldown-plugin-gjsify`. Direct use is only needed when calling the CSS pipeline outside of a gjsify build.
34
34
 
35
+ ## Platform coverage
36
+
37
+ | Platform | Prebuild | Built by |
38
+ |---|---|---|
39
+ | `linux-x64` | ✅ `.so` + `.gir` + `.typelib` | native runner |
40
+ | `linux-arm64` | ✅ | native runner |
41
+ | `linux-ppc64`, `linux-s390x`, `linux-riscv64` | ✅ | QEMU emulation |
42
+ | `darwin-arm64` (macOS, Apple silicon) | ✅ `.dylib` + `.gir` + `.typelib` | `macos-latest` runner |
43
+ | `darwin-x64` (macOS, Intel) | ❌ | — no runner leg yet |
44
+ | Windows | ❌ | — no Vala/GI bridge in this repo targets Windows |
45
+
46
+ All prebuilds are produced by [`.github/workflows/prebuilds.yml`](../../../.github/workflows/prebuilds.yml)
47
+ and committed back to the repository.
48
+
49
+ **Known gap — a `darwin-arm64` prebuild is built and shipped, but the CLI does not
50
+ load it yet.** `detectNativePackages()` (`packages/infra/cli/src/utils/detect-native-packages.ts`)
51
+ hardcodes a `linux-` directory prefix, and `buildNativeEnv()` exports `LD_LIBRARY_PATH`,
52
+ which macOS `dyld` ignores in favour of `DYLD_LIBRARY_PATH`. Both are CLI-side fixes;
53
+ until they land, macOS falls back to the npm `lightningcss` package.
54
+
35
55
  ## License
36
56
 
37
57
  MIT
@@ -0,0 +1 @@
1
+ import{__name as e}from"./_virtual/_rolldown/runtime.js";import{bundle as t,getLoadError as n,hasNativeLightningcss as r,loadNativeLightningcss as i,transform as a}from"./index.js";import{describe as o,expect as s,it as c,on as l}from"@gjsify/unit";import u from"@girs/glib-2.0";const decode=e=>new TextDecoder().decode(e),d=`.btn { color: red; & .icon { padding: 4px; } &:hover { color: blue; } }`,f=`firefox >= 60`;function writeTempCss(e,t,n){let r=`${e}/${t}`;return u.file_set_contents(r,new TextEncoder().encode(n)),r}var p=e(async()=>{await l(`Gjs`,async()=>{await o(`@gjsify/lightningcss-native — module loading`,async()=>{await c(`loads the GjsifyLightningcss typelib successfully`,()=>{s(r()).toBe(!0),s(n()).toBeNull(),s(typeof i()?.Engine).toBe(`function`)})}),await o(`@gjsify/lightningcss-native — shared engine: option independence`,async()=>{let e=decode(a({filename:`a.css`,code:d}).code),t=decode(a({filename:`a.css`,code:d,targets:f}).code);await c(`the fixture actually distinguishes targets (guards the guard)`,()=>{s(e).not.toBe(t),s(t).toContain(`.btn .icon`)}),await c(`targets do not leak from a previous call`,()=>{a({filename:`a.css`,code:d,targets:f}),s(decode(a({filename:`a.css`,code:d}).code)).toBe(e),a({filename:`a.css`,code:d}),s(decode(a({filename:`a.css`,code:d,targets:f}).code)).toBe(t)}),await c(`minify does not leak from a previous call`,()=>{let e=decode(a({filename:`a.css`,code:d,minify:!1}).code),t=decode(a({filename:`a.css`,code:d,minify:!0}).code);s(e).not.toBe(t),s(decode(a({filename:`a.css`,code:d,minify:!1}).code)).toBe(e),s(decode(a({filename:`a.css`,code:d,minify:!0}).code)).toBe(t)}),await c(`a stored source map does not leak into a later map-less call`,()=>{s(a({filename:`a.css`,code:d,sourceMap:!0}).map).toBeDefined(),s(a({filename:`a.css`,code:d,sourceMap:!1}).map).toBeUndefined()}),await c(`the filename of a previous call does not leak into a later source map`,()=>{a({filename:`first.css`,code:d,sourceMap:!0});let e=a({filename:`second.css`,code:d,sourceMap:!0}),t=JSON.parse(decode(e.map));s(t.sources.join(`,`)).toContain(`second.css`),s(t.sources.join(`,`)).not.toContain(`first.css`)}),await c(`stays stable across many interleaved option changes`,()=>{for(let n=0;n<25;n++)s(decode(a({filename:`a.css`,code:d}).code)).toBe(e),s(decode(a({filename:`a.css`,code:d,targets:f}).code)).toBe(t)})}),await o(`@gjsify/lightningcss-native — shared engine: error isolation`,async()=>{await c(`surfaces a transform error and leaves the shared engine usable`,()=>{let e=decode(a({filename:`a.css`,code:d}).code);s(()=>a({filename:`a.css`,code:``})).toThrow(),s(decode(a({filename:`a.css`,code:d}).code)).toBe(e)}),await c(`surfaces a bundle error and leaves the shared engine usable`,()=>{let e=decode(a({filename:`a.css`,code:d}).code);s(()=>t({filename:`/nonexistent/gjsify-does-not-exist.css`})).toThrow(),s(decode(a({filename:`a.css`,code:d}).code)).toBe(e)})}),await o(`@gjsify/lightningcss-native — shared engine: bundle/transform interop`,async()=>{let e=u.Dir.make_tmp(`gjsify-lightningcss-XXXXXX`),n=writeTempCss(e,`leaf.css`,`.leaf { color: green; }`),r=writeTempCss(e,`entry.css`,`@import "./leaf.css";\n${d}`);await c(`bundle() resolves @import chains`,()=>{let e=decode(t({filename:r}).code);s(e).toContain(`.leaf`),s(e).toContain(`.btn`)}),await c(`bundle() and transform() do not contaminate each other`,()=>{let e=decode(t({filename:r}).code),n=decode(a({filename:`a.css`,code:d}).code);t({filename:r,targets:f,minify:!0}),s(decode(a({filename:`a.css`,code:d}).code)).toBe(n),a({filename:`a.css`,code:d,targets:f,sourceMap:!0}),s(decode(t({filename:r}).code)).toBe(e)}),await c(`cleans up the temp fixture directory`,()=>{u.unlink(r),u.unlink(n),u.rmdir(e),s(u.file_test(e,u.FileTest.EXISTS)).toBe(!1)})}),await o(`@gjsify/lightningcss-native — shared engine: the engine really is reused`,async()=>{await c(`constructs no further Engine instances after the first call`,()=>{let e=i();s(e).not.toBeNull(),a({filename:`a.css`,code:d});let t=e.Engine,n=0,Counting=function(){return n++,new t},r=!1;try{e.Engine=Counting,r=e.Engine===Counting;for(let e=0;e<25;e++)a({filename:`a.css`,code:d})}finally{r&&(e.Engine=t)}r?s(n).toBe(0):s(e.Engine).toBe(t)})})})},`default`);export{p as default};
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";let e=null,t=!1,n=null;function loadNativeLightningcss(){if(t)return e;t=!0;try{let t=globalThis.imports?.gi;if(!t)return n=Error(`imports.gi not available — not running under GJS?`),null;let r=t.GjsifyLightningcss;return r?(e=r,e):(n=Error(`GjsifyLightningcss typelib not found on GI_TYPELIB_PATH`),null)}catch(t){return n=t instanceof Error?t:Error(String(t)),e=null,null}}function hasNativeLightningcss(){return loadNativeLightningcss()!==null}function getLoadError(){return n}function getGLib(){let e=globalThis.imports?.gi;if(!e||!e.GLib)throw Error(`@gjsify/lightningcss-native: GLib not available (not running under GJS?)`);return e.GLib}function transform(e){let t=loadNativeLightningcss();if(!t)throw Error(`@gjsify/lightningcss-native: prebuild not available (${n?.message??`unknown`})`);let r=typeof e.code==`string`?new TextEncoder().encode(e.code):e.code,i=getGLib().Bytes.new(r),[a,o]=new t.Engine().transform(e.filename??null,i,e.targets??null,!!e.minify,!!e.sourceMap),s={code:a.get_data()??new Uint8Array};if(o){let e=o.get_data();e&&(s.map=e)}return s}function bundle(e){let t=loadNativeLightningcss();if(!t)throw Error(`@gjsify/lightningcss-native: prebuild not available (${n?.message??`unknown`})`);let[r,i]=new t.Engine().bundle(e.filename,e.targets??null,!!e.minify,!!e.sourceMap,e.errorRecovery??!0),a={code:r.get_data()??new Uint8Array};if(i){let e=i.get_data();e&&(a.map=e)}return a}export{bundle,getLoadError,hasNativeLightningcss,loadNativeLightningcss,transform};
1
+ import"./_virtual/_rolldown/runtime.js";let e=null,t=!1,n=null;function loadNativeLightningcss(){if(t)return e;t=!0;try{let t=globalThis.imports?.gi;if(!t)return n=Error(`imports.gi not available — not running under GJS?`),null;let r=t.GjsifyLightningcss;return r?(e=r,e):(n=Error(`GjsifyLightningcss typelib not found on GI_TYPELIB_PATH`),null)}catch(t){return n=t instanceof Error?t:Error(String(t)),e=null,null}}function hasNativeLightningcss(){return loadNativeLightningcss()!==null}function getLoadError(){return n}let r=null;function getEngine(e){return r===null&&(r=new e.Engine),r}function getGLib(){let e=globalThis.imports?.gi;if(!e||!e.GLib)throw Error(`@gjsify/lightningcss-native: GLib not available (not running under GJS?)`);return e.GLib}function transform(e){let t=loadNativeLightningcss();if(!t)throw Error(`@gjsify/lightningcss-native: prebuild not available (${n?.message??`unknown`})`);let r=typeof e.code==`string`?new TextEncoder().encode(e.code):e.code,i=getGLib().Bytes.new(r),[a,o]=getEngine(t).transform(e.filename??null,i,e.targets??null,!!e.minify,!!e.sourceMap),s={code:a.get_data()??new Uint8Array};if(o){let e=o.get_data();e&&(s.map=e)}return s}function bundle(e){let t=loadNativeLightningcss();if(!t)throw Error(`@gjsify/lightningcss-native: prebuild not available (${n?.message??`unknown`})`);let[r,i]=getEngine(t).bundle(e.filename,e.targets??null,!!e.minify,!!e.sourceMap,e.errorRecovery??!0),a={code:r.get_data()??new Uint8Array};if(i){let e=i.get_data();e&&(a.map=e)}return a}export{bundle,getLoadError,hasNativeLightningcss,loadNativeLightningcss,transform};
package/meson.build CHANGED
@@ -15,6 +15,48 @@ vala_deps = [
15
15
  dependency('gobject-2.0'),
16
16
  ]
17
17
 
18
+ # ----------------------------------------------------------------------------
19
+ # Host-dependent naming + runtime-lookup conventions
20
+ #
21
+ # Three things differ per host and MUST agree, or the prebuild loads on one
22
+ # platform and silently fails on the other (mirrors @gjsify/napi's meson
23
+ # branch):
24
+ #
25
+ # 1. cargo's cdylib leaf — libgjsify_lightningcss.{so,dylib}
26
+ # 2. meson's library() leaf — libgjsifylightningcss.{so,dylib}; the typelib
27
+ # records this name and gjs' g_module_open() resolves exactly it at load.
28
+ # 3. how the Vala library finds its sibling Rust cdylib at runtime. Both
29
+ # files ship side by side in prebuilds/<platform>-<arch>/, so the lookup
30
+ # must be relative to the loading binary: $ORIGIN on ELF, @loader_path on
31
+ # Mach-O. On macOS this is load-bearing — unlike Linux (where the CLI
32
+ # exports LD_LIBRARY_PATH for the prebuild dir) nothing sets
33
+ # DYLD_LIBRARY_PATH, so the rpath is the ONLY way the cdylib is found.
34
+ #
35
+ # Windows is deliberately absent: no Vala bridge here has had any Windows
36
+ # portability work, so `else` (ELF naming) is the honest fallback rather than a
37
+ # .dll branch that would imply support that does not exist.
38
+ # ----------------------------------------------------------------------------
39
+ host_system = host_machine.system()
40
+
41
+ if host_system == 'darwin'
42
+ rust_cdylib_name = 'libgjsify_lightningcss.dylib'
43
+ shared_lib_name = 'libgjsifylightningcss.dylib'
44
+ lib_rpath = '@loader_path'
45
+ # Normalise the cdylib's LC_ID_DYLIB to @rpath/<leaf> BEFORE the Vala
46
+ # library links against it: ld64 copies the dependency's install name
47
+ # verbatim into the dependent's LC_LOAD_DYLIB. rustc's own install name has
48
+ # varied across releases (absolute build path in older rustc, @rpath/<leaf>
49
+ # in current ones); pinning it here makes the recorded dependency
50
+ # rustc-version-independent, and @rpath/ is never longer than an absolute
51
+ # path so install_name_tool can always rewrite in place.
52
+ rust_cdylib_post = ' && install_name_tool -id "@rpath/' + rust_cdylib_name + '" "$3"'
53
+ else
54
+ rust_cdylib_name = 'libgjsify_lightningcss.so'
55
+ shared_lib_name = 'libgjsifylightningcss.so'
56
+ lib_rpath = '$ORIGIN'
57
+ rust_cdylib_post = ''
58
+ endif
59
+
18
60
  # ----------------------------------------------------------------------------
19
61
  # Rust cdylib (cargo)
20
62
  #
@@ -35,9 +77,10 @@ rust_target_dir = meson.current_build_dir() / 'cargo-target'
35
77
 
36
78
  rust_cdylib = custom_target('gjsify-lightningcss-rust',
37
79
  input: rust_sources,
38
- output: 'libgjsify_lightningcss.so',
80
+ output: rust_cdylib_name,
39
81
  command: ['sh', '-c',
40
- 'cargo build --release --manifest-path "$1" --target-dir "$2" && cp "$2/release/libgjsify_lightningcss.so" "$3"',
82
+ 'cargo build --release --manifest-path "$1" --target-dir "$2" && cp "$2/release/'
83
+ + rust_cdylib_name + '" "$3"' + rust_cdylib_post,
41
84
  'sh',
42
85
  meson.current_source_dir() / 'src/rust/Cargo.toml',
43
86
  rust_target_dir,
@@ -68,7 +111,11 @@ libGjsifyLightningcss = library('gjsifylightningcss', sources,
68
111
  link_depends: rust_cdylib,
69
112
  install: true,
70
113
  install_dir: [true, true, true, true],
71
- install_rpath: '$ORIGIN',
114
+ # `build_rpath` (not just `install_rpath`) is what matters for the prebuild:
115
+ # the artifact shipped in prebuilds/ is copied straight out of the build
116
+ # dir, never through `meson install`, so only the build-tree rpath survives.
117
+ build_rpath: lib_rpath,
118
+ install_rpath: lib_rpath,
72
119
  )
73
120
 
74
121
  g_ir_compiler = find_program('g-ir-compiler')
@@ -76,7 +123,7 @@ g_ir_compiler = find_program('g-ir-compiler')
76
123
  custom_target(meson.project_name() + '-1.0.typelib',
77
124
  command: [
78
125
  g_ir_compiler,
79
- '--shared-library', 'libgjsifylightningcss.so',
126
+ '--shared-library', shared_lib_name,
80
127
  '--output', '@OUTPUT@',
81
128
  meson.current_build_dir() / meson.project_name() + '-1.0.gir',
82
129
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/lightningcss-native",
3
- "version": "0.22.0",
3
+ "version": "0.24.1",
4
4
  "description": "Vala/GObject + Rust cdylib bridge to lightningcss for GJS. Replaces the Node-only npm `lightningcss` package: parse, transform, minify, and browserslist-target lowering of CSS without leaving a Node-free GJS process. Backs `@gjsify/rolldown-plugin-gjsify`'s cssAsStringPlugin under `--app gjs` so GTK4-CSS lowering (firefox60) works without a Node runtime in the build pipeline.",
5
5
  "type": "module",
6
6
  "main": "lib/esm/index.js",
@@ -20,20 +20,31 @@
20
20
  "src/vala"
21
21
  ],
22
22
  "gjsify": {
23
+ "platforms": [
24
+ "linux-x64",
25
+ "linux-arm64",
26
+ "linux-ppc64",
27
+ "linux-s390x",
28
+ "linux-riscv64",
29
+ "darwin-arm64"
30
+ ],
23
31
  "prebuilds": "prebuilds",
24
32
  "tier": 1
25
33
  },
26
34
  "scripts": {
27
- "clear": "rm -rf lib build tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo || exit 0",
28
- "check": "gjsify tsc --noEmit",
35
+ "clear": "rm -rf lib build tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo test.gjs.mjs || exit 0",
36
+ "check": "gjsify tsc --noEmit && gjsify tsc --noEmit -p tsconfig.spec.json",
29
37
  "init:meson": "meson setup build .",
30
38
  "init:meson:wipe": "gjsify run init:meson --wipe",
31
39
  "build": "gjsify run build:gjsify && gjsify run build:types",
32
40
  "build:gjsify": "gjsify build --library 'src/ts/**/*.{ts,js}'",
33
- "build:meson": "gjsify run init:meson && meson compile -C build",
41
+ "build:meson": "node ../../../scripts/check-refs-pin.mjs . && gjsify run init:meson && meson compile -C build",
34
42
  "build:types": "gjsify tsc",
35
- "build:prebuilds": "gjsify run build:meson && mkdir -p prebuilds/linux-x86_64 && cp build/libgjsifylightningcss.so build/libgjsify_lightningcss.so build/GjsifyLightningcss-1.0.gir build/GjsifyLightningcss-1.0.typelib prebuilds/linux-x86_64/",
36
- "build:gir-types": "ts-for-gir generate --externalDeps --allowMissingDeps --girDirectories=./prebuilds/linux-x86_64 --girDirectories=/usr/share/gir-1.0 --modules=GjsifyLightningcss-1.0 --outdir=src/ts --npmScope=@girs --package=false --ignoreVersionConflicts=true"
43
+ "build:test:gjs": "gjsify build src/ts/test.mts --app gjs --outfile test.gjs.mjs",
44
+ "test": "gjsify run build:gjsify && gjsify run build:test:gjs && gjsify run test:gjs",
45
+ "test:gjs": "gjsify run test.gjs.mjs",
46
+ "build:prebuilds": "gjsify run build:meson && node ../../../scripts/stage-prebuild.mjs .",
47
+ "build:gir-types": "ts-for-gir generate --externalDeps --allowMissingDeps --girDirectories=./prebuilds/linux-x64 --girDirectories=/usr/share/gir-1.0 --modules=GjsifyLightningcss-1.0 --outdir=src/ts --npmScope=@girs --package=false --ignoreVersionConflicts=true"
37
48
  },
38
49
  "keywords": [
39
50
  "gjs",
@@ -51,7 +62,8 @@
51
62
  "@girs/gobject-2.0": "^4.1.0"
52
63
  },
53
64
  "devDependencies": {
54
- "@gjsify/cli": "^0.22.0",
65
+ "@gjsify/cli": "^0.24.1",
66
+ "@gjsify/unit": "^0.24.1",
55
67
  "@ts-for-gir/cli": "^4.1.0",
56
68
  "@types/node": "^25.9.2",
57
69
  "typescript": "^6.0.3"
@@ -0,0 +1,87 @@
1
+ <?xml version="1.0"?>
2
+ <!-- GjsifyLightningcss-1.0.gir generated by valac 0.56.19, do not modify. -->
3
+ <repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:doc="http://www.gtk.org/introspection/doc/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
4
+ <include name="GObject" version="2.0"/>
5
+ <include name="GLib" version="2.0"/>
6
+ <package name="gjsifylightningcss"/>
7
+ <c:include name="gjsify-lightningcss-glue.h"/>
8
+ <c:include name="gjsifylightningcss.h"/>
9
+ <doc:format name="unknown"/>
10
+ <namespace name="GjsifyLightningcss" version="1.0" shared-library="libgjsifylightningcss.dylib" c:prefix="GjsifyLightningcss" c:identifier-prefixes="GjsifyLightningcss" c:symbol-prefixes="gjsify_lightningcss">
11
+ <class name="Engine" c:type="GjsifyLightningcssEngine" c:symbol-prefix="engine" glib:type-name="GjsifyLightningcssEngine" glib:get-type="gjsify_lightningcss_engine_get_type" glib:type-struct="EngineClass" parent="GObject.Object">
12
+ <field name="parent_instance" readable="0" private="1">
13
+ <type name="GObject.Object" c:type="GObject"/>
14
+ </field>
15
+ <field name="priv" readable="0" private="1">
16
+ <type name="EnginePrivate" c:type="GjsifyLightningcssEnginePrivate*"/>
17
+ </field>
18
+ <method name="transform" c:identifier="gjsify_lightningcss_engine_transform" throws="1">
19
+ <return-value transfer-ownership="full">
20
+ <type name="GLib.Bytes" c:type="GBytes*"/>
21
+ </return-value>
22
+ <parameters>
23
+ <instance-parameter name="self" transfer-ownership="none">
24
+ <type name="GjsifyLightningcss.Engine" c:type="GjsifyLightningcssEngine*"/>
25
+ </instance-parameter>
26
+ <parameter name="filename" transfer-ownership="none" nullable="1">
27
+ <type name="utf8" c:type="const gchar*"/>
28
+ </parameter>
29
+ <parameter name="code" transfer-ownership="none">
30
+ <type name="GLib.Bytes" c:type="GBytes*"/>
31
+ </parameter>
32
+ <parameter name="browserslist" transfer-ownership="none" nullable="1">
33
+ <type name="utf8" c:type="const gchar*"/>
34
+ </parameter>
35
+ <parameter name="minify" transfer-ownership="none">
36
+ <type name="gboolean" c:type="gboolean"/>
37
+ </parameter>
38
+ <parameter name="source_map" transfer-ownership="none">
39
+ <type name="gboolean" c:type="gboolean"/>
40
+ </parameter>
41
+ <parameter name="out_source_map" direction="out" transfer-ownership="full" optional="1">
42
+ <type name="GLib.Bytes" c:type="GBytes**"/>
43
+ </parameter>
44
+ </parameters>
45
+ </method>
46
+ <method name="bundle" c:identifier="gjsify_lightningcss_engine_bundle" throws="1">
47
+ <return-value transfer-ownership="full">
48
+ <type name="GLib.Bytes" c:type="GBytes*"/>
49
+ </return-value>
50
+ <parameters>
51
+ <instance-parameter name="self" transfer-ownership="none">
52
+ <type name="GjsifyLightningcss.Engine" c:type="GjsifyLightningcssEngine*"/>
53
+ </instance-parameter>
54
+ <parameter name="filename" transfer-ownership="none">
55
+ <type name="utf8" c:type="const gchar*"/>
56
+ </parameter>
57
+ <parameter name="browserslist" transfer-ownership="none" nullable="1">
58
+ <type name="utf8" c:type="const gchar*"/>
59
+ </parameter>
60
+ <parameter name="minify" transfer-ownership="none">
61
+ <type name="gboolean" c:type="gboolean"/>
62
+ </parameter>
63
+ <parameter name="source_map" transfer-ownership="none">
64
+ <type name="gboolean" c:type="gboolean"/>
65
+ </parameter>
66
+ <parameter name="error_recovery" transfer-ownership="none">
67
+ <type name="gboolean" c:type="gboolean"/>
68
+ </parameter>
69
+ <parameter name="out_source_map" direction="out" transfer-ownership="full" optional="1">
70
+ <type name="GLib.Bytes" c:type="GBytes**"/>
71
+ </parameter>
72
+ </parameters>
73
+ </method>
74
+ <constructor name="new" c:identifier="gjsify_lightningcss_engine_new">
75
+ <return-value transfer-ownership="full">
76
+ <type name="GjsifyLightningcss.Engine" c:type="GjsifyLightningcssEngine*"/>
77
+ </return-value>
78
+ </constructor>
79
+ </class>
80
+ <record name="EngineClass" c:type="GjsifyLightningcssEngineClass" glib:is-gtype-struct-for="Engine">
81
+ <field name="parent_class" readable="0" private="1">
82
+ <type name="GObject.ObjectClass" c:type="GObjectClass"/>
83
+ </field>
84
+ </record>
85
+ <record name="EnginePrivate" c:type="GjsifyLightningcssEnginePrivate" disguised="1"/>
86
+ </namespace>
87
+ </repository>
index d275a04..df4b6a7 100644
Binary file
index 6c3093e..55ef7c2 100644
Binary file
index 2d1f0dd..eb8324f 100755
Binary file
index b2554a7..d20fa59 100755
Binary file