rustysan-sword 0.1.1

Blade-inspired HTML templates for Rust
Documentation
---
title: Testing
weight: 17
---

Run these checks from the package directory:

```sh
cargo fmt --all -- --check
cargo clippy --locked --all-targets -- -D warnings
cargo clippy --locked --all-targets --features laravel,dump -- -D warnings
cargo test --locked
cargo test --locked --features laravel,dump
cargo doc --locked --no-deps --features laravel,dump
cargo package --locked --list
```

Set `RUSTDOCFLAGS` to `-D warnings` when running `cargo doc`. README.md and all Markdown pages in docs/ run as rustdoc tests; lines starting with `# ` are compiled but hidden.

Cargo.lock is committed and resolves the newest supported Laravel Rust (0.2.0). CI also runs the tests against 0.1.0 and 0.1.6 with `cargo update -p laravel-rust --precise <version>`.

Also check the default release build contains no `@dump` code, and each feature on its own:

```sh
cargo build --release
strings target/release/librustysan_sword.rlib | grep -c sword-dump
cargo test --features dump
cargo test --features laravel
```

The grep prints `0` for a default build.