Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changepacks/changepack_log_nn6zbR9OpTUg0nwwk6o09.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"changes":{"packages/eslint-plugin/package.json":"Patch","bindings/devup-ui-wasm/package.json":"Patch"},"note":"Update lib","date":"2026-02-10T18:09:56.395548800Z"}
88 changes: 44 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@ resolver = "2"
members = ["libs/extractor", "bindings/devup-ui-wasm", "libs/sheet", "libs/css"]

[profile.release]
# Tell `rustc` to optimize for small code size.
# Optimize for small code size (critical for WASM binary)
opt-level = "s"
# Link-time optimization: enables cross-crate inlining and dead code elimination
lto = true
# Single codegen unit: maximizes optimization at cost of compile time
codegen-units = 1
# Strip debug symbols from release binary
strip = true
# Abort on panic: smaller binary, no unwinding overhead
panic = "abort"
2 changes: 1 addition & 1 deletion apps/vite-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"vite-plugin-dts": "^4.5",
"@devup-ui/vite-plugin": "workspace:^",
"@vitejs/plugin-react": "^5.1.3",
"@vitejs/plugin-react": "^5.1.4",
"vite": "^7.3",
"typescript": "^5",
"@types/node": "^25",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/next-chakra-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "next lint"
},
"dependencies": {
"@chakra-ui/react": "^3.31",
"@chakra-ui/react": "^3.32",
"@emotion/react": "^11.14",
"next": "^16.1",
"next-themes": "^0.4",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/next-stylex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/react": "19.2",
"@types/react-dom": "19.2",
"@types/react-test-renderer": "^19.1",
"eslint": "9.39",
"eslint": "10.0",
"eslint-config-next": "16.1",
"prettier": "^3.8",
"react-test-renderer": "^19.2",
Expand Down
1 change: 0 additions & 1 deletion bindings/devup-ui-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ css = { path = "../../libs/css" }
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.7", optional = true }
once_cell = "1.21.3"
js-sys = "0.3.85"
serde_json = "1.0.149"
serde-wasm-bindgen = "0.6.5"
Expand Down
7 changes: 3 additions & 4 deletions bindings/devup-ui-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ use css::class_map::{get_class_map, set_class_map};
use css::file_map::{get_file_map, get_filename_by_file_num, set_file_map};
use extractor::extract_style::extract_style_value::ExtractStyleValue;
use extractor::{ExtractOption, ImportAlias, extract, has_devup_ui};
use once_cell::sync::Lazy;
use sheet::StyleSheet;
use std::collections::{HashMap, HashSet};
use std::sync::Mutex;
use std::sync::{LazyLock, Mutex};
use wasm_bindgen::prelude::*;

static GLOBAL_STYLE_SHEET: Lazy<Mutex<StyleSheet>> =
Lazy::new(|| Mutex::new(StyleSheet::default()));
static GLOBAL_STYLE_SHEET: LazyLock<Mutex<StyleSheet>> =
LazyLock::new(|| Mutex::new(StyleSheet::default()));

#[wasm_bindgen]
pub struct Output {
Expand Down
Loading