Vidhan Bhatt
d3b871189f
Support axum
v0.7 through axum-core
v0.4 and http
v1 ( #401 )
...
* chore: bump `axum-core` for use with new `axum` 0.7 release
* chore: bump doctest axum too
* chore: update changelog
* chore: fix changelog
* fix: doctest
* fix: import right resp type
* fix: bump http as well
* fix: doctest
* Update CHANGELOG.md
2023-12-30 22:06:47 +13:00
Soso
8318963db7
Upgrade to syn
2.0.0 ( #400 )
...
* Upgrade syn
* Disable proc-macro-error syn 1.0.0 dependency
* Update docs lockfile
2023-11-26 15:56:12 +11:00
Teodor Källman
8c47208568
Accept literals in attribute names ( #396 )
...
* Accept literals in attribute names
* Accept literals in attribute names
* Propper handling of literals in name_to_string()
2023-11-14 15:05:48 +11:00
Chris Wong
d1cfde53b6
Set resolver explicitly in workspace config ( #391 )
...
https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
2023-09-27 13:40:38 +10:00
Chris Wong
bfc3a6d0d5
Fix Clippy needless-raw-string-hashes warning ( #390 )
2023-09-27 03:33:22 +00:00
Chris Wong
811c7402ff
Fix Clippy redundant-guards warning ( #387 )
2023-08-02 14:11:10 +00:00
Chris Wong
0d4d194e62
Update docs dependencies
2023-07-02 12:54:57 +10:00
Matt Fellenz
79259ab426
Fix #382 ( #383 )
...
* Properly group splice expressions
* Add test for fix
2023-06-11 19:58:43 +10:00
Imbolc
b7e5768d44
Impl Render for Arc<Render> ( #380 )
...
* Arc
* Changelog
2023-05-28 21:38:14 +10:00
Imbolc
1ab01cca27
Remove AsRef<str>
restriction from structs ( #377 )
2023-05-28 21:11:37 +10:00
Chris Wong
ca7b93c790
Update docs to Rust 2021 ( #376 )
2023-04-16 07:11:06 +00:00
Chris Wong
bf44196a61
Release 0.25.0 ( #375 )
2023-04-16 16:54:45 +10:00
Imbolc
34b3bc00ce
impl Default for PreEscaped ( #371 )
...
* impl Default for PreEscaped
* Simplify assertion
* Update CHANGELOG.md
---------
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2023-04-16 05:27:45 +00:00
Chris Wong
0d1bc320d3
Document that std::fmt::Display is used first
...
Closes #363
2023-04-16 15:18:36 +10:00
Daniel Oliveira
7233cda35e
Add axum to the list of frameworks in docs ( #370 )
2023-04-04 22:51:57 +10:00
Chris Wong
c42153f20c
Change #![feature(once_cell)]
to lazy_cell
( #372 )
...
For rust-lang/rust#105587
2023-04-01 09:39:04 +00:00
Chris Wong
cdb9d3a48d
Move optional attribute documentation ( #369 )
2023-02-13 01:34:34 +00:00
Chris Wong
4f14db7415
Switch documentation to one-sentence-per-line ( #368 )
2023-02-12 11:19:56 +00:00
David Pedersen
daa43549ee
Bump axum-core to 0.3.0 ( #361 )
...
* Bump axum-core to 0.3.0
This is required for axum 0.6 support
* Update doctests
* changelog
2023-01-24 22:19:55 +11:00
Simon Ask
6cdf12b427
Render with Display using autoref specialization ( #359 )
2022-12-15 21:39:54 +11:00
Paolo Barbolini
81ace856a4
Bump itoa to v1 ( #358 )
2022-10-30 00:57:54 +11:00
Chris Wong
1fff8123eb
Remove html_debug!
( #357 )
...
It's not documented anywhere, and `cargo expand` does the same thing.
2022-10-27 04:29:04 +00:00
Chris Wong
ce6a9f3bbd
Add git tag -a
to release process ( #356 )
...
The GitHub Releases feature creates lightweight tags, not annotated tags.
2022-09-25 14:24:52 +00:00
Chris Wong
8415003cc5
Release 0.24.0 ( #351 )
...
* Release 0.24.0
* Update Cargo.lock for docs
2022-09-25 23:48:38 +10:00
Chris Wong
c13e1dcc48
Don't symlink the escaper module ( #355 )
...
The symlink doesn't work on Windows, and breaks NixOS builds.
Closes #343
2022-09-18 12:47:39 +00:00
Chris Wong
40dffecd5d
Remove default features from comrak (including clap) ( #354 )
2022-09-18 12:17:54 +00:00
Chris Wong
f3cf24b341
Update documentation dependencies ( #352 )
2022-08-12 13:30:42 +00:00
Chris Wong
7d51e0b04a
Fix typo in changelog
2022-08-12 23:02:28 +10:00
Chris Wong
a43fd53c4a
Add maud::display
( #350 )
2022-08-12 22:48:25 +10:00
Chris Wong
f43d47d135
Use LazyLock ( #346 )
2022-06-20 19:55:37 +08:00
Chris Wong
5aa543a6c2
Replace split_n(2, ...)
with split_once
( #344 )
2022-05-13 05:05:36 +00:00
Benoît Cortier
d05bcba02c
Update axum-core
depedency to 0.2 ( #337 )
...
* Update `axum-core` depedency to 0.2
* Update doctest to use Axum 0.5
* Update CHANGELOG.md regarding axum
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2022-04-12 12:44:34 +10:00
Chris Wong
d04a2c6a01
Document that the doctest
crate might need updating ( #338 )
...
Also rename the "Examples" build to "Doctest" to clarify what it does.
2022-04-10 20:29:41 +10:00
Rob Ede
e6787cd621
Update actix-web depedency to 4.0.0 ( #331 )
2022-02-28 11:28:57 +11:00
Michael Alyn Miller
26cdad9991
Use explicitly-named args in impl_render_with_display
( #328 )
...
* Use explicitly-named args in `impl_render_with_display`
Implicitly-named args were failing on Rust 1.57 (but worked on Nightly).
* Fix macro formatting
Also add a TODO comment to revert later.
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2022-01-13 05:00:31 +00:00
David Pedersen
6e3222f57a
Update to axum-core 0.1 ( #325 )
...
* Update to axum-core 0.1
Together with the new 0.4 release of `axum` we made a new crate called
[`axum-core`]. `axum-core` has a small API and is less likely to receive
breaking changes. Therefore its recommended for libraries to depend on
`axum-core` instead of `axum`.
So this updates `maud` to use `axum-core`.
Note this is a breaking change since `axum-core` requires `axum` 0.4.
[`axum-core`]: https://crates.io/crates/axum-core
* Update changelog link
* fix test
2021-12-08 19:12:00 +11:00
Chris Wong
2f6f781dc7
Run doctests again ( #324 )
2021-11-29 11:30:43 +00:00
Chris Wong
ca860d09bd
Add a style guide for the docs ( #323 )
2021-11-29 11:06:56 +00:00
Chris Wong
2f3d68c8a4
Remove blanket Render
impl for T: Display
( #320 )
...
Closes #271
2021-11-21 19:58:58 +11:00
Chris Wong
f6bbece1c6
Make Escaper
doctest not-ignored ( #321 )
2021-11-21 08:57:26 +00:00
Chris Wong
12cec48134
Run Clippy on docs builder ( #319 )
2021-11-11 22:32:37 +11:00
Chris Wong
982c9f4a03
Release 0.23.0 ( #318 )
2021-11-11 22:08:26 +11:00
Chris Wong
5f4a5bd54a
Remove trailing space
2021-11-10 20:16:02 +11:00
Chris Wong
0d4276220d
Update slash error message to point to #315 ( #317 )
2021-11-07 12:31:46 +00:00
Chris Wong
dc6c88fae3
Disallow slashes (/
) in void elements ( #315 )
...
# Overview
The following syntax will no longer work:
```rust
html! {
br /
link rel="stylesheet" href="styles.css" /
}
```
This should be changed to the following:
```rust
html! {
br;
link rel="stylesheet" href="styles.css";
}
```
# Rationale
The `;` syntax was introduced in #96 ; the rationale for it can be found there.
Removing support for the older `/` syntax will simplify the API surface, and allow for the space to be used for other things.
2021-11-07 23:17:15 +11:00
Chris Wong
317bf9e5ec
Rename Attribute
to NamedAttr
( #314 )
2021-11-07 11:39:44 +00:00
Chris Wong
40487fc34c
Switch rustfmt to nightly ( #313 )
...
Nightly rustfmt is needed for the `imports_granularity` option.
2021-11-07 02:24:44 +00:00
Chris Wong
3c12d3639b
Simplify Generator::block
( #312 )
2021-11-07 02:22:28 +00:00
Chris Wong
434af86ae7
Remove Iron support ( #289 )
...
The Iron framework hasn't been updated in a long time. It still uses outdated versions of libraries like futures 0.1, hyper 0.12, url 1.7. We can clean up the repo by removing it. This will also slightly speed up CI.
2021-11-06 11:44:10 +00:00
Chris Wong
3232fb7eca
Delete maud_htmlescape
package ( #311 )
...
Replace it with a symlink. Cargo will automatically resolve this to a
normal file on publish.
2021-11-06 11:33:44 +00:00