Commit graph

550 commits

Author SHA1 Message Date
2625809534 Remove #[doc(hidden)] from Buffer::clear 2025-03-18 13:05:42 -04:00
56c6af90d6 Fix default impl of Escape::escape_to_buf and add a simple test case for EscapeJsonString 2025-03-13 19:01:45 -04:00
96eaea8479 Remove unused test cases 2025-03-13 18:58:49 -04:00
bbb5291e00 Clean up 2025-03-13 13:40:41 -04:00
b5a9ee4613 Don't track node_modules 2025-03-13 13:39:31 -04:00
97d72958dd Less restrictive bound on E in CommonIdents 2025-03-12 21:07:41 -04:00
33de62a0a7 Add some more common escaping scheme identity checks 2025-03-12 20:30:05 -04:00
b9bfa38131 Export some escaping utilities, refactor a little bit 2025-03-12 20:30:00 -04:00
9448cb3537 Export some functions 2025-03-12 20:26:31 -04:00
d3043ad4d4 Refactor to allow more optimized escaping 2025-03-12 20:24:12 -04:00
b22fc16fd2 Allow any ASCII whitespace instead of just space after <% 2025-03-12 19:55:43 -04:00
2f8f1010f8 Refactor to support custom escaping schemes 2025-03-12 19:55:39 -04:00
96107eeb09 Silence unused_macros on render_tuple! 2025-03-12 18:04:08 -04:00
01d2249947 impl RenderOnce on tuples of up to 8 values 2025-03-12 18:04:08 -04:00
0fd6e064d1 Improve comment syntax 2025-03-12 18:02:23 -04:00
133b98bc5d Unify Render* and Template* traits 2025-03-12 18:01:42 -04:00
4ed1e098bd Improve API 2025-03-12 17:07:43 -04:00
Vince Pike
47e281cd1c
Merge pull request #162 from rust-sailfish/dependabot/npm_and_yarn/syntax/vscode/esbuild-0.25.0
build(deps-dev): bump esbuild from 0.21.5 to 0.25.0 in /syntax/vscode
2025-02-13 13:23:07 -05:00
dependabot[bot]
9048595738
build(deps-dev): bump esbuild from 0.21.5 to 0.25.0 in /syntax/vscode
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.21.5 to 0.25.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.21.5...v0.25.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-12 03:50:30 +00:00
vthg2themax
c01415fcc9 Merge branch 'main' of https://vthg2themax@github.com/rust-sailfish/sailfish.git
Conflicts:
	syntax/vscode/.gitignore
	syntax/vscode/package-lock.json
	syntax/vscode/package.json
2024-10-08 14:57:14 -04:00
vthg2themax
39b2423c28 Merge branch 'main' of https://vthg2themax@github.com/rust-sailfish/sailfish.git
Conflicts:
	syntax/vscode/.gitignore
	syntax/vscode/package-lock.json
	syntax/vscode/package.json
2024-10-08 14:56:13 -04:00
vthg2themax
c386c648c6 Merge branch 'main' of https://vthg2themax@github.com/rust-sailfish/sailfish.git
Conflicts:
	syntax/vscode/.gitignore
	syntax/vscode/package-lock.json
	syntax/vscode/package.json
2024-10-08 14:50:50 -04:00
Vince Pike
6d8339fcf6
Merge pull request #159 from ambiso/main
Format Document for vscode extension
2024-10-08 14:43:43 -04:00
vthg2themax
9da0cbfb8a Update icon.xcf, logo128.png, .gitignore, and 8383 more files 2024-10-04 11:36:36 -04:00
Vince Pike
a4450ebd84
Merge pull request #158 from dianhenglau/tree-sitter
Add tree-sitter support
2024-10-02 10:39:27 -04:00
ambiso
9832728d16
Implement formatting for vscode extension 2024-09-03 12:51:45 +02:00
vthg2themax
fe4694d687 Update To Latest Version 2024-08-25 20:55:36 -04:00
dianhenglau
e46dec875c Add tree-sitter 2024-07-11 06:37:27 +08:00
vthg2themax
2365789959 Fuzzing relies on atty, which appears to be unmaintained according to dependabot. I don't see anything running this, or information on running it, so I will be removing it. 2024-06-16 06:19:53 -04:00
vthg2themax
9a7cb4cc25 Attempt to fix tests, by testing the default features that sailfish uses. 2024-06-16 06:05:46 -04:00
vthg2themax
b472d4e6a4 Last Minute Changes For The Beta Version 2024-06-16 05:05:41 -04:00
yaoxi-std
0ce2236df5 Renamed tests with underlines 2024-06-15 01:08:12 -04:00
yaoxi-std
0458437cd0 Changed some docs back to TemplateSimple 2024-06-15 01:07:24 -04:00
yaoxi-std
f61e305a69 Add TemplateSimple & Update README 2024-06-15 01:06:00 -04:00
yaoxi-std
96ca0877a1 Simplify tests 2024-06-15 01:04:54 -04:00
yaoxi-std
c23fe1eab7 Add some tests for calling methods 2024-06-15 01:04:20 -04:00
yaoxi-std
9618da94b4 Add mut in render_once impl 2024-06-15 01:03:46 -04:00
yaoxi-std
7d96eba5b6 Reconstructed & Passed tests. 2024-06-15 01:02:29 -04:00
yaoxi-std
029806c9ef Auto derivation of TemplateMut <- TemplateOnce 2024-06-15 01:00:43 -04:00
yaoxi-std
be6bd9a803 Fixed typos in procmacro.rs 2024-06-15 00:59:54 -04:00
yaoxi-std
7045fc2026 Auto derivation of TemplateMut <- TemplateOnce 2024-06-15 00:59:20 -04:00
yaoxi-std
8d4ed1c31f Created TemplateMut and Template 2024-06-15 00:58:16 -04:00
yaoxi-std
4cf39890ae Reference self in templates 2024-06-15 00:55:53 -04:00
Vince Pike
33108a2247
Merge pull request #155 from PaulDotSH/bump-MSRV-fix-ci
Update MSRV to fix CI issues
2024-06-11 09:04:40 -04:00
PaulDotSH
b82ed638d7 Update MSRV to fix CI issues 2024-06-11 08:39:09 -04:00
Vince Pike
788e57254a
Merge pull request #152 from PaulDotSH/apply-clippy-lints
Apply clippy lints for code readability
2024-06-08 20:10:42 -04:00
vthg2themax
c5c8d81f6a Update The Build Docs Script To Make It Easier To Use Next Time 2024-06-08 10:32:27 -04:00
vthg2themax
a76db44a88 Update The Documentation To List Some Useful Information About The Display Filter 2024-06-08 05:57:00 -04:00
PaulDotSH
e0522cb2d5 Apply clippy lints for code readability 2024-06-05 06:28:08 -04:00
Vince Pike
f1d3d884fc
Merge pull request #148 from rust-sailfish/dependabot/cargo/examples/h2-0.3.26
build(deps): bump h2 from 0.3.24 to 0.3.26 in /examples
2024-05-04 14:38:38 -04:00
dependabot[bot]
94828862c1
build(deps): bump h2 from 0.3.24 to 0.3.26 in /examples
Bumps [h2](https://github.com/hyperium/h2) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-05 16:18:37 +00:00
Vince Pike
d27b415d7a
Merge pull request #144 from rust-sailfish/dependabot/cargo/examples/mio-0.8.11
build(deps): bump mio from 0.8.6 to 0.8.11 in /examples
2024-03-05 10:02:24 -05:00
dependabot[bot]
9133849820
build(deps): bump mio from 0.8.6 to 0.8.11 in /examples
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.6 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.6...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 21:45:23 +00:00
Vince Pike
7a0c492434
Merge pull request #142 from rust-sailfish/dependabot/cargo/examples/h2-0.3.24
build(deps): bump h2 from 0.3.17 to 0.3.24 in /examples
2024-01-24 13:01:07 -05:00
dependabot[bot]
b98c2a4568
build(deps): bump h2 from 0.3.17 to 0.3.24 in /examples
Bumps [h2](https://github.com/hyperium/h2) from 0.3.17 to 0.3.24.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.17...v0.3.24)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 16:09:35 +00:00
vthg2themax
2e39299483 bump version in preparation for upload to crates.io 2023-10-22 05:01:13 -04:00
Vince Pike
ef79697c6e
Merge pull request #138 from levkk/levkk-fix-filename-conflict
Fix filename conflict
2023-10-22 04:54:44 -04:00
Lev
af91dc5243 remove space 2023-10-21 14:10:31 -07:00
Lev
4c554d1a57 Fix filename conflict 2023-10-21 14:09:00 -07:00
Vince Pike
3bb7b3e042
Merge pull request #136 from miranbastaja/toml-0.8
dep: update toml to 0.8.2
2023-10-17 16:20:11 -04:00
Miran Bastaja
28972209cd
dep: update toml to 0.8.2 2023-10-17 16:55:47 +02:00
vthg2themax
222f69c38a Update Version Number For Latest Release 2023-10-09 15:22:18 -04:00
Vince Pike
222a2650b8
Merge pull request #135 from nwtnni/main
Use timestamps for change detection
2023-10-09 15:04:39 -04:00
Newton Ni
01ba06707b Use timestamps for change detection
This commit changes the caching mechanism to use the timestamp of
all included templates instead of hashing the contents of the
root template.

The primary downside is that every build now has to parse, transform,
and resolve the input templates instead of just reading and hashing
the data--I didn't measure how much more expensive this is, but it
seems unavoidable if we need information about child templates.
Maybe a hacky regex-based approach could work as an alternative to
a complete parse.

On the bright side, this approach rebuilds parent templates correctly
when a child template has changed, and doesn't require garbage collection
for old compiled template files.
2023-10-02 13:21:29 -05:00
vthg2themax
a93f66f7ea Update Cargo.lock, and then create a new Release tag 2023-07-28 10:38:47 -04:00
vthg2themax
c05154271a Update config.rs and procmacro.rs 2023-07-28 10:28:02 -04:00
vthg2themax
4ef3f62ba2 Update Version Numbers Merge 2023-07-28 10:23:13 -04:00
vthg2themax
9d9351b670 Update Version Numbers Now 2023-07-28 10:20:51 -04:00
Vince Pike
2265829c81
Merge pull request #125 from w-flo/proc_macro_cache
Cache templates compiled by proc-macro
2023-07-28 07:59:45 -04:00
Vince Pike
6e6dc93bb4 Merge branch 'main' into pr/125 2023-07-25 11:51:32 -04:00
Vince Pike
646ab62fe8
Merge pull request #126 from w-flo/update_changelog
Update CHANGELOG.md for 0.7.0 release
2023-06-22 15:32:54 -04:00
Florian Will
bfb0fea368 Update CHANGELOG.md for 0.7.0 release
This might help some people who want to know how difficult a 0.6 -> 0.7
upgrade would be for them.

Also fix some markdown issues.
2023-06-22 21:23:47 +02:00
vthg2themax
0a5f6c6b5c Update Cargo.lock, README.md, installation.md, and 7 more files Update the version, and publish. 2023-06-22 15:11:54 -04:00
Florian Will
935bc8ebf4 Cache templates compiled by proc-macro
Instead of recompiling sailfish templates on every proc-macro
invocation, see if an output file for the same input file content +
compiler config combination already exists.

This also fixes #58 because it avoids multiple proc-macro invocations
writing to the same output file at roughly the same time from different
processes, for example in clippy checks that execute in parallel.

In addition to the compiled output, now the list of dependencies (file
names), which was previously generated by the compiler for each template
on every proc-macro invocation, needs to be stored to disk for re-use.
2023-06-21 21:49:06 +02:00
Kogia-sima
79b91f73f0
Merge pull request #124 from w-flo/optional_config
[Breaking] Add `config` feature for `sailfish` crate
2023-06-21 22:37:39 +09:00
Florian Will
1c0231b5d0 Add breaking config feature change to CHANGELOG.md 2023-06-21 09:30:54 +02:00
Florian Will
3a9f62610f [Breaking] Add config feature for sailfish crate
This is for enabling the corresponding `config` feature in
`sailfish-macros` and `sailfish-compiler`. If it is disabled,
configuration files (sailfish.toml) will be ignored. More than 10 cargo
build steps can be avoided this way, since the `toml` and `serde`
dependencies in `sailfish-compiler` are no longer needed.

This change will break applications that use sailfish.toml and
`default-features = false` for the `sailfish` dependency. They need to
add `config` to the list of enabled `sailfish` features in Cargo.toml.

Closes #123
2023-06-21 09:18:32 +02:00
vthg2themax
9b0cd6263c Update Version 2023-04-13 14:09:37 -04:00
Vince Pike
329d55bd67
Merge pull request #121 from rust-sailfish/stable
Stable
2023-04-13 13:59:39 -04:00
Vince Pike
40e11e6b78
Stable (#120)
* Update The Version In Preparation For Release

* Update Cargo.lock

---------

Co-authored-by: Vince Pike <vince@oryp9>
Co-authored-by: Vince Pike <25014503+vthg2themax@users.noreply.github.com>
2023-04-13 13:57:59 -04:00
Vince Pike
59150b0134
Stable (#119)
* Update The Version In Preparation For Release

* Update Cargo.lock

---------

Co-authored-by: Vince Pike <vince@oryp9>
Co-authored-by: Vince Pike <25014503+vthg2themax@users.noreply.github.com>
2023-04-13 13:55:50 -04:00
Vince Pike
3d00c38d08 Update Cargo.lock 2023-04-13 13:53:53 -04:00
Vince Pike
b3f227d2ad Merge branch 'master' into stable 2023-04-13 13:53:46 -04:00
dependabot[bot]
3bd003b260
build(deps): bump h2 from 0.3.16 to 0.3.17 in /examples (#118)
Bumps [h2](https://github.com/hyperium/h2) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.16...v0.3.17)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 13:09:07 -04:00
Vince Pike
099c4f3f36
Dependabot/cargo/examples/regex 1.7.3 (#117)
* build(deps): bump regex from 1.3.9 to 1.7.3 in /examples

Bumps [regex](https://github.com/rust-lang/regex) from 1.3.9 to 1.7.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.9...1.7.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* More happy little updates to packages

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vince Pike <25014503+vthg2themax@users.noreply.github.com>
2023-04-13 12:57:31 -04:00
dependabot[bot]
d67fc1aa99
build(deps): bump regex from 1.3.9 to 1.7.3 in /examples (#116)
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.9 to 1.7.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.9...1.7.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 08:41:25 -04:00
liushuyu
2a8e1a7b7d
dep: update syn to v2 (#115)
* dep: update syn to v2

* fix a broken test.

---------

Co-authored-by: Vince Pike <25014503+vthg2themax@users.noreply.github.com>
2023-04-12 10:02:05 -04:00
Imbolc
7741afd404
Docs: fix rfc link (#114) 2023-03-18 05:49:29 -04:00
Kogia-sima
9274af3c3f Bump MSRV to 1.60.0 2023-03-05 20:28:28 +09:00
Kogia-sima
fd4f43b91b dep: Update toml crate (0.5 => 0.7) 2023-03-05 20:19:17 +09:00
Kogia-sima
70be336063 Update MSRV (1.42.0 => 1.46.0)
It seems that filetime crate silently updated the msrv. This is an
breaking change so we need minor version upgrade.
2023-03-05 20:13:58 +09:00
Kogia-sima
5fe0934aba Add comment about include_bytes_seq
`include_bytes_seq` statements are required for cargo to watch child
templates. Without them, compiler won't re-run after the child templates
are updated.

cc #112
2023-03-05 18:08:56 +09:00
Vince Pike
b293756277
Update The Version In Preparation For Release (#109)
Co-authored-by: Vince Pike <vince@oryp9>
2023-01-24 16:43:15 -05:00
Vince Pike
adcb28045a Update The Version In Preparation For Release 2023-01-24 16:41:00 -05:00
Vince Pike
1c2fc83d6b Merge branch 'pr/104' 2023-01-24 15:28:37 -05:00
Vince Pike
13d6d06955 Update documentation 2023-01-24 15:27:03 -05:00
Daniel Arbuckle
96d4ad3e01 switched introductory symbol to + 2023-01-24 07:58:40 -08:00
dependabot[bot]
32c9d461e5
build(deps): bump net2 from 0.2.34 to 0.2.38 in /examples (#108)
Bumps [net2](https://github.com/deprecrated/net2-rs) from 0.2.34 to 0.2.38.
- [Release notes](https://github.com/deprecrated/net2-rs/releases)
- [Commits](https://github.com/deprecrated/net2-rs/compare/0.2.34...0.2.38)

---
updated-dependencies:
- dependency-name: net2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 14:33:02 -05:00
dependabot[bot]
5b3a562c2e
build(deps): bump lock_api from 0.4.1 to 0.4.6 in /examples (#107)
Bumps [lock_api](https://github.com/Amanieu/parking_lot) from 0.4.1 to 0.4.6.
- [Release notes](https://github.com/Amanieu/parking_lot/releases)
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Amanieu/parking_lot/compare/lock_api-0.4.1...lock_api-0.4.6)

---
updated-dependencies:
- dependency-name: lock_api
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 14:32:48 -05:00
dependabot[bot]
57cae48f33
build(deps): bump miow from 0.2.1 to 0.2.2 in /examples (#92)
Bumps [miow](https://github.com/yoshuawuyts/miow) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/yoshuawuyts/miow/releases)
- [Changelog](https://github.com/yoshuawuyts/miow/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yoshuawuyts/miow/compare/0.2.1...0.2.2)

---
updated-dependencies:
- dependency-name: miow
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 14:32:34 -05:00