Skip to main content

Crate dioxus_js_bindgen

Crate dioxus_js_bindgen 

Source
Expand description

§dioxus-js-bindgen

Zero-Build, Low-Annotation, RAII-Safe Rust <-> JS/TS FFI Binding Engine for Dioxus.

Re-exports§

pub use watcher_guard::WatcherGuard;
pub use clear_js_cache as reset_module_registry;
pub use serde;
pub use serde_json;
pub use tracing;

Modules§

watcher_guard

Macros§

bind_js
bind_js! procedural macro for generating zero-build, low-annotation Rust FFI wrappers from local static TS/JS bridge files.

Structs§

RpcResponse
Query 비동기 RPC 응답 페이로드

Enums§

JsError
JS FFI 에러 타입

Functions§

clear_js_cache
브라우저에 주입된 JS 모듈 캐시와 Rust 측 Epoch를 무효화하여 모든 바인딩 모듈이 다음 호출 시 브라우저에 재평가/재등록되도록 합니다.
use_watcher
Dioxus Signal을 자동으로 추적하여 의존성 변경 시 이전 감시자를 Drop하고 새 감시자를 시작하는 순수 리액티브 훅