Skip to content

Commit ce78a5f

Browse files
authored
Merge pull request #570 from dev-five-git/update-lib
Update lib
2 parents 7131e4a + 48cf466 commit ce78a5f

32 files changed

Lines changed: 1458 additions & 754 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}

Cargo.lock

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,13 @@ resolver = "2"
33
members = ["libs/extractor", "bindings/devup-ui-wasm", "libs/sheet", "libs/css"]
44

55
[profile.release]
6-
# Tell `rustc` to optimize for small code size.
6+
# Optimize for small code size (critical for WASM binary)
77
opt-level = "s"
8+
# Link-time optimization: enables cross-crate inlining and dead code elimination
9+
lto = true
10+
# Single codegen unit: maximizes optimization at cost of compile time
11+
codegen-units = 1
12+
# Strip debug symbols from release binary
13+
strip = true
14+
# Abort on panic: smaller binary, no unwinding overhead
15+
panic = "abort"

apps/vite-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"vite-plugin-dts": "^4.5",
2020
"@devup-ui/vite-plugin": "workspace:^",
21-
"@vitejs/plugin-react": "^5.1.3",
21+
"@vitejs/plugin-react": "^5.1.4",
2222
"vite": "^7.3",
2323
"typescript": "^5",
2424
"@types/node": "^25",

benchmark/next-chakra-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"@chakra-ui/react": "^3.31",
13+
"@chakra-ui/react": "^3.32",
1414
"@emotion/react": "^11.14",
1515
"next": "^16.1",
1616
"next-themes": "^0.4",

benchmark/next-stylex/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@types/react": "19.2",
3131
"@types/react-dom": "19.2",
3232
"@types/react-test-renderer": "^19.1",
33-
"eslint": "9.39",
33+
"eslint": "10.0",
3434
"eslint-config-next": "16.1",
3535
"prettier": "^3.8",
3636
"react-test-renderer": "^19.2",

bindings/devup-ui-wasm/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ css = { path = "../../libs/css" }
2525
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
2626
# code size when deploying.
2727
console_error_panic_hook = { version = "0.1.7", optional = true }
28-
once_cell = "1.21.3"
2928
js-sys = "0.3.85"
3029
serde_json = "1.0.149"
3130
serde-wasm-bindgen = "0.6.5"

bindings/devup-ui-wasm/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ use css::class_map::{get_class_map, set_class_map};
22
use css::file_map::{get_file_map, get_filename_by_file_num, set_file_map};
33
use extractor::extract_style::extract_style_value::ExtractStyleValue;
44
use extractor::{ExtractOption, ImportAlias, extract, has_devup_ui};
5-
use once_cell::sync::Lazy;
65
use sheet::StyleSheet;
76
use std::collections::{HashMap, HashSet};
8-
use std::sync::Mutex;
7+
use std::sync::{LazyLock, Mutex};
98
use wasm_bindgen::prelude::*;
109

11-
static GLOBAL_STYLE_SHEET: Lazy<Mutex<StyleSheet>> =
12-
Lazy::new(|| Mutex::new(StyleSheet::default()));
10+
static GLOBAL_STYLE_SHEET: LazyLock<Mutex<StyleSheet>> =
11+
LazyLock::new(|| Mutex::new(StyleSheet::default()));
1312

1413
#[wasm_bindgen]
1514
pub struct Output {

0 commit comments

Comments
 (0)