Commit graph

75 commits

Author SHA1 Message Date
Chris Wong
6e50e675b6
Release 0.26.0 () 2024-01-15 23:21:00 +11:00
thatguydoru
320add87a1
Warp Integration: Yet another web framework support ()
* Add warp integration.

* Add warp to docs

* Update changelog

* Please the mighty rustfmt \o/

* Enable warp feature in doctest

---------

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2024-01-04 15:39:21 +11:00
Paul Jones
0de60b0c86
Update rocket support to v0.5 ()
* update rocket support to v0.5

* added rocket upgrade to CHANGELOG.md

* fix documentation code for rocket v0.5

---------

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2023-12-30 09:10:30 +00:00
Vidhan Bhatt
d3b871189f
Support axum v0.7 through axum-core v0.4 and http v1 ()
* 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
Teodor Källman
8c47208568
Accept literals in attribute names ()
* 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
Imbolc
b7e5768d44
Impl Render for Arc<Render> ()
* Arc

* Changelog
2023-05-28 21:38:14 +10:00
Imbolc
1ab01cca27
Remove AsRef<str> restriction from structs () 2023-05-28 21:11:37 +10:00
Chris Wong
bf44196a61
Release 0.25.0 () 2023-04-16 16:54:45 +10:00
Imbolc
34b3bc00ce
impl Default for PreEscaped ()
* 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
David Pedersen
daa43549ee
Bump axum-core to 0.3.0 ()
* 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
Chris Wong
1fff8123eb
Remove html_debug! ()
It's not documented anywhere, and `cargo expand` does the same thing.
2022-10-27 04:29:04 +00:00
Chris Wong
8415003cc5
Release 0.24.0 ()
* Release 0.24.0

* Update Cargo.lock for docs
2022-09-25 23:48:38 +10:00
Chris Wong
7d51e0b04a
Fix typo in changelog 2022-08-12 23:02:28 +10:00
Chris Wong
a43fd53c4a
Add maud::display () 2022-08-12 22:48:25 +10:00
Benoît Cortier
d05bcba02c
Update axum-core depedency to 0.2 ()
* 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
Rob Ede
e6787cd621
Update actix-web depedency to 4.0.0 () 2022-02-28 11:28:57 +11:00
David Pedersen
6e3222f57a
Update to axum-core 0.1 ()
* 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
2f3d68c8a4
Remove blanket Render impl for T: Display ()
Closes 
2021-11-21 19:58:58 +11:00
Chris Wong
982c9f4a03
Release 0.23.0 () 2021-11-11 22:08:26 +11:00
Chris Wong
5f4a5bd54a Remove trailing space 2021-11-10 20:16:02 +11:00
Chris Wong
dc6c88fae3
Disallow slashes (/) in void elements ()
# 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 ; 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
434af86ae7
Remove Iron support ()
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
49755007da
Update to Rust 2021 () 2021-11-01 17:18:48 +11:00
Alexandre Macabies
2909e5129c
Add support for Option<T> attributes ()
* Add support for Option<T> attributes

Introduces the `attr=[value]` syntax that assumes `value` is an
`Option<T>`. Renders `attr="value"` for `Some(value)` and entirely
omits the attribute for `None`.

Implements and therefore closes .

* Call `Generator::splice` directly

* Handle struct literals (edge case)

Co-authored-by: Chris Wong <xbuns@google.com>
2021-10-29 16:24:34 +11:00
David Pedersen
4374979a4f
Update to support axum 0.2 ()
* Update to support axum 0.2

* Update changelog
2021-10-16 14:14:27 +11:00
Chris Wong
2700f714bc
Release 0.22.3 () 2021-09-27 11:55:45 +00:00
Marcel Müller
cc62bcbb86
Add axum support ()
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-08-17 19:25:07 +10:00
Max Countryman
ba9c7b523c
Tide support ()
This introduces support for Tide by implementing `From` over markup.
Unlike other frameworks, Tide does not seem to provide e.g. a trait
which could instead be implemented. However as demonstrated, this
alternative results in a simple, ergonomic interface.

Consumers may leverage Tide support by using the "tide" feature.

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-08-06 14:22:05 +10:00
Benjamin Halsted
3eb4254ffb
Using no_std + alloc ()
Removed references to `std` and replaced them with references to `core` and `alloc`.
Features `rocket` and `iron` still require `std`.

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-07-30 22:05:31 +10:00
Chris Wong
4cffcd298b
Remove [Foo] tags from changelog ()
I don't think they add much, and they conflict with mdformat which
escapes square brackets (executablebooks/mdformat#112).

cc 
2021-01-26 22:47:49 +13:00
Chris Wong
87b7c9c2ba
Release 0.22.2 () 2021-01-09 18:01:17 +13:00
Chris Wong
b286c65939
Use Span::mixed_site directly from proc-macro2 ()
Since 1.0.19, `proc-macro2` now provides `Span::mixed_site` directly.
2021-01-09 17:15:43 +13:00
Chris Wong
31bd465b52
Generalize Into impl to From ()
This fixes a Clippy lint.
2021-01-04 21:45:33 +13:00
Chris Wong
167afc65bd
Changelog: make "Unreleased" a link 2020-12-01 10:45:54 +13:00
Chris Wong
d5dec51c3a
Make the ? suffix for empty attributes optional () 2020-11-11 16:47:23 +13:00
Chris Wong
0c9b6f2150
Release 0.22.1 ()
* Release 0.22.1

* Update benchmarks and docs dependencies

* Comrak breaking change
2020-11-02 19:24:13 +13:00
Chris Wong
eac710815b Update changelog for stable support 2020-10-11 20:11:44 +11:00
Rob Ede
31115a6287
Add actix-web v3 support ()
* Add actix-web v3 support

* Add actix-web example

* Resolve changelog PR number

* Make sure that examples are built on CI

* Format Cargo.toml consistently

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2020-10-11 17:22:19 +13:00
Chris Wong
34a79ee706 Release 0.22 2020-06-20 19:57:51 +10:00
Christopher Czyba
fca333cc36 [CHANGELOG] Mention actix-web 2.0.0 support 2020-03-07 13:52:49 +01:00
Chris Wong
d0f29ae410 Change username from lfairy to lambda-fairy 2019-09-14 13:48:59 +12:00
Chris Wong
5e2c9e26a8 Release 0.21.0 2019-07-01 21:03:44 +12:00
Chris Wong
6de2cf1998 Release 0.20.0 2019-01-17 16:01:55 +13:00
Chris Wong
0ccb2829c9 Release 0.19.0 2018-10-20 17:15:57 +13:00
Chris Wong
7bcdc27ab8 Reword 0.18.1 changelog entry 2018-07-21 21:20:41 +12:00
YetAnotherMinion
c47f40c890 fix: update benchmarks to build with 0.18.x, document required compiler feature flags change 2018-07-19 10:36:12 -04:00
Chris Wong
de6f654614 Release 0.18.1 2018-07-18 20:03:44 +12:00
Chris Wong
aadc749715 Release 0.18.0 2018-07-15 21:46:16 +12:00
Chris Wong
67b6fb05e9 Release 0.17.5 2018-05-26 11:57:51 +12:00
Chris Wong
7c63fc138a Release 0.17.4 2018-05-02 20:49:17 +12:00