Docs.rs
tauri-utils-2.1.0
tauri-utils 2.1.0
Permalink
Docs.rs crate page
Apache-2.0 OR MIT
Links
Homepage
Repository
crates.io
Source
Owners
nothingismagick
tauri-bot
Dependencies
aes-gcm ^0.10
normal
optional
brotli ^7
normal
optional
cargo_metadata ^0.18
normal
optional
ctor ^0.2
normal
dunce ^1
normal
getrandom ^0.2
normal
optional
glob ^0.3
normal
html5ever ^0.26
normal
http ^1.1.0
normal
infer ^0.16
normal
json-patch ^3.0
normal
json5 ^0.4
normal
optional
kuchikiki ^0.8
normal
log ^0.4.21
normal
memchr ^2
normal
phf ^0.11
normal
proc-macro2 ^1
normal
optional
quote ^1
normal
optional
regex ^1
normal
schemars ^0.8.18
normal
optional
semver ^1
normal
serde ^1
normal
serde-untagged ^0.1
normal
serde_json ^1
normal
serde_with ^3
normal
serialize-to-javascript =0.1.1
normal
optional
thiserror ^2
normal
toml ^0.8
normal
url ^2
normal
urlpattern ^0.3
normal
uuid ^1
normal
walkdir ^2
normal
optional
getrandom ^0.2
dev
serial_test ^3.1
dev
swift-rs ^1.0.7
normal
optional
Versions
100%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
tauri_
utils
2.1.0
In tauri_
utils::
html
tauri_utils
::
html
Function
inject_csp
Copy item path
Source
pub fn inject_csp(document: &
NodeRef
, csp: &
str
)
Expand description
Injects a content security policy to the HTML.