Skip to content

Commit

Permalink
Last Minute Changes For The Beta Version
Browse files Browse the repository at this point in the history
  • Loading branch information
vthg2themax committed Jun 16, 2024
1 parent 0ce2236 commit b472d4e
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 17 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Dependencies:

```toml
[dependencies]
sailfish = "0.8.3"
sailfish = "0.9.0-beta"
```

You can choose to use `TemplateSimple` to access fields directly:
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ In order to use sailfish templates, you have add two dependencies in your `Cargo

``` toml
[dependencies]
sailfish = "0.8.3"
sailfish = "0.9.0-beta"
```

## Feature Flags
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sailfish-examples"
version = "0.8.3"
version = "0.9.0-beta"
authors = ["Ryohei Machida <[email protected]>"]
edition = "2018"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion sailfish-compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sailfish-compiler"
version = "0.8.3"
version = "0.9.0-beta"
authors = ["Ryohei Machida <[email protected]>"]
description = "Simple, small, and extremely fast template engine for Rust"
homepage = "https://github.com/rust-sailfish/sailfish"
Expand Down
4 changes: 2 additions & 2 deletions sailfish-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sailfish-macros"
version = "0.8.3"
version = "0.9.0-beta"
authors = ["Ryohei Machida <[email protected]>"]
description = "Simple, small, and extremely fast template engine for Rust"
homepage = "https://github.com/rust-sailfish/sailfish"
Expand Down Expand Up @@ -30,6 +30,6 @@ proc-macro2 = "1.0.56"

[dependencies.sailfish-compiler]
path = "../sailfish-compiler"
version = "0.8.3"
version = "0.9.0-beta"
default-features = false
features = ["procmacro"]
2 changes: 1 addition & 1 deletion sailfish-tests/fuzzing-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fuzzing-tests"
version = "0.8.3"
version = "0.9.0-beta"
authors = ["Ryohei Machida <[email protected]>"]
edition = "2018"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion sailfish-tests/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "integration-tests"
version = "0.8.3"
version = "0.9.0-beta"
authors = ["Ryohei Machida <[email protected]>"]
edition = "2018"
publish = false
Expand Down
12 changes: 10 additions & 2 deletions sailfish-tests/integration-tests/tests/template.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#[macro_use]
extern crate sailfish_macros;

use integration_tests::assert_string_eq;
use sailfish::runtime::RenderResult;
use sailfish::{Template, TemplateMut, TemplateOnce};
use sailfish::{Template, TemplateMut, TemplateOnce, TemplateSimple};
use std::path::PathBuf;

fn assert_render_result(name: &str, result: RenderResult) {
Expand Down Expand Up @@ -47,6 +46,15 @@ trait ConflictWithSailFishRender {
impl ConflictWithSailFishRender for u8 {}
impl ConflictWithSailFishRender for u16 {}

#[derive(TemplateSimple)]
#[template(path = "empty.stpl")]
struct EmptySimple {}

#[test]
fn empty_simple() {
assert_render_once("empty", Empty {});
}

#[derive(Template)]
#[template(path = "empty.stpl")]
struct Empty {}
Expand Down
1 change: 0 additions & 1 deletion sailfish-tests/integration-tests/tests/template_simple.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#[macro_use]
extern crate sailfish_macros;

use integration_tests::assert_string_eq;
Expand Down
4 changes: 2 additions & 2 deletions sailfish/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sailfish"
version = "0.8.3"
version = "0.9.0-beta"
authors = ["Ryohei Machida <[email protected]>"]
description = "Simple, small, and extremely fast template engine for Rust"
homepage = "https://github.com/rust-sailfish/sailfish"
Expand Down Expand Up @@ -31,7 +31,7 @@ serde_json = { version = "1.0.95", optional = true }

[dependencies.sailfish-macros]
path = "../sailfish-macros"
version = "0.8.3"
version = "0.9.0-beta"
default-features = false
optional = true

Expand Down

0 comments on commit b472d4e

Please sign in to comment.