mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
Replace the BytecodeFactory header with cbindgen. This will help ensure that types and enums and constants are kept in sync between the C++ and Rust code. It's also a step in exporting more Rust enums directly rather than relying on magic constants for switch statements. The FFI functions are now all placed in the JS::FFI namespace, which is the cause for all the churn in the scripting parts of LibJS and LibWeb.
22 lines
424 B
TOML
22 lines
424 B
TOML
[package]
|
|
name = "libjs_rust"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
crate-type = ["staticlib"]
|
|
|
|
# After changing dependencies, regenerate the Flatpak sources:
|
|
# python3 Meta/CMake/flatpak/generate-cargo-sources.py
|
|
[dependencies]
|
|
unicode-ident = "1.0"
|
|
num-bigint = "0.4"
|
|
num-traits = "0.2"
|
|
num-integer = "0.1"
|
|
|
|
[build-dependencies]
|
|
bytecode_def = { path = "../BytecodeDef" }
|
|
cbindgen = "0.29"
|
|
|
|
[lints]
|
|
workspace = true
|