Skip to main content

Crate rust_css_parser

Crate rust_css_parser 

Source
Expand description

Rust port of @tbela99/css-parser. The module tree mirrors src/* of the typescript project.

Modules§

ast
bindings
Javascript bindings: one call interface shared by the N-API addon (extensions/css-parser-napi) and the WASM module (extensions/css-parser-wasm). The backends are separate crates of the workspace: this crate only provides the exchange buffer, the arena handles and the dispatch of the calls.
fs
host
Host (javascript) interface: callbacks, values exchanged with the host, and the executor of the async ports.
options
Port of the option interfaces of src/@types/index.d.ts (ParserOptions, ParserSyncOptions, MinifyOptions, ValidationOptions, RenderOptions, ModuleSyncOptions, …).
parser
plain
Plain (javascript like) values: the plain objects of toPlainObject() / fromObject(), visitor results, json data. Objects keep the insertion order of their keys, numbers are f64 (NaN, -0 and the infinities included).
printer
syntax
types
Port of the shared declarations of src/@types/*.d.ts and src/types.ts.
utils
validation

Constants§

VERSION
version of the package (version of package.json, set by build.rs)