Crates.io | replace_html |
lib.rs | replace_html |
version | 0.1.0 |
source | src |
created_at | 2024-04-15 20:28:18.54271 |
updated_at | 2024-04-15 20:28:18.54271 |
description | A simple, minimal crate to replace HTML in wasm32 environments. |
homepage | |
repository | https://github.com/loopystudios/replace_html |
max_upload_size | |
id | 1209613 |
size | 27,775 |
Quickstart to run demo:
# Make sure the Rust toolchain supports the wasm32 target
rustup target add wasm32-unknown-unknown
# Install `wasm-server-runner` for the example
cargo install wasm-server-runner
cargo run --target wasm32-unknown-unknown --example simple
There is also a web demo available here.
#[cfg(target_arch = "wasm32")]
fn main() {
replace_html::replace_body("Your platform is not supported!").unwrap();
}
#[cfg(not(target_arch = "wasm32"))]
fn main() {
// Proceed to run your application...
}
All Loopy projects and development happens in the Loopy Discord. The discord is open to the public.
Contributions are welcome by pull request. The Rust code of conduct applies.
Licensed under either of
at your option
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.