Commit graph

206 commits

Author SHA1 Message Date
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
3232fb7eca
Delete maud_htmlescape package ()
Replace it with a symlink. Cargo will automatically resolve this to a
normal file on publish.
2021-11-06 11:33:44 +00:00
Chris Wong
45157fc58c
Partially revert for class shorthand ()
On reflection, the extra spaces around classes feels weird to me. Let's revert that (but keep the 2021 edition migration in place).
2021-11-06 21:51:34 +11: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
Chris Wong
057a231715
Fix UI tests for nightly diagnostic change () 2021-10-17 19:07:51 +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
7a839a9a1c Bump maud_htmlescape version for no_std support 2021-09-27 22:01:18 +10:00
Chris Wong
2700f714bc
Release 0.22.3 () 2021-09-27 11:55:45 +00:00
Emilio González
4b317956fa
Report error for missing closing tag token () 2021-09-18 19:30:13 +10:00
Chris Wong
36f786b39d
Fix unused variable in benchmark () 2021-09-12 03:07:06 +00:00
Chris Wong
dc028116b8
Enforce merged imports ()
Closes 
2021-09-11 10:42:25 +00:00
Max Countryman
eb9cd821ca
ensure tide default-features are disabled ()
This ensures that maud itself doesn't dictate what features an author might like to use.
2021-08-29 12:24:22 +10: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
56f108c564
Update to rustc 1.54.0-nightly (6d395a1c2 2021-05-13) () 2021-05-15 14:14:31 +00:00
Chris Wong
8990049101
Improve error message for non-string literals ()
Closes 
2021-03-21 22:20:37 +11:00
Chris Wong
7284924cc8
Add more UI tests ()
cc 
2021-03-13 19:38:50 +11:00
Chris Wong
eaf552d417
Test documentation examples in CI ()
Closes 

Closes 
2021-01-15 17:40:46 +13:00
Chris Wong
87b7c9c2ba
Release 0.22.2 () 2021-01-09 18:01:17 +13:00
Chris Wong
37e11fcb6b
Remove non-Maud benchmarks ()
There's already [template-benchmarks-rs](https://github.com/djc/template-benchmarks-rs), so we don't need to maintain a separate set here.

The Maud-specific benchmarks are kept, as they're still useful for testing future optimizations.
2021-01-07 21:37:28 +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
07f31e9342
Enable --all-targets for Clippy ()
Closes 
2020-12-23 20:02:34 +13:00
Chris Wong
5f7cec4da1
Remove Travis status badges ()
cc 
2020-12-23 19:38:27 +13:00
Chris Wong
d5dec51c3a
Make the ? suffix for empty attributes optional () 2020-11-11 16:47:23 +13:00
Chris Wong
6ebe6b1fe1
Clean up tests ()
- Call `.into_string()` later
- Rename UI test to match Rust convention
2020-11-07 22:44:47 +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
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
c139b7b719 Ensure that trybuild tests are actually run
PR  removed the `unstable` flag, but the trybuild tests still
depended on it 🤦
2020-10-06 18:14:47 +11:00
Chris Wong
49f3c46bd2
Avoid unstable specialization with this one weird trick! ()
Rustaceans hate him!
2020-10-05 22:44:27 +13:00
Chris Wong
64390ec0ce
Switch to version_check ()
version_check has fewer dependencies, and is already used by proc-macro-error and Rocket.
2020-09-28 22:03:06 +10:00
Chris Wong
250d93df9a
Enable stable support 🎉 ()
Infer whether nightly features are available using rustc_version. If this fails, assume stable.

Closes 
2020-09-28 11:06:44 +10:00
Chris Wong
d66c2d66fd
Remove #![feature(proc_macro_hygiene)] () 2020-09-27 23:17:41 +10:00
Chris Wong
50a7e9ce37 Format everything! 2020-09-27 21:36:27 +10:00
Chris Wong
0bab139b66 Skip an html! call 2020-09-27 21:30:55 +10:00
Chris Wong
8f025e2c86 Remove unused import 2020-09-27 20:14:16 +10:00
CreepySkeleton
4d3d057cc2 Move to trybuild 2020-08-31 11:57:57 +03:00
Chris Wong
a495522259
Put specialized impls in a logical order ()
Follow-up to 

cc @berwyn
2020-08-07 21:24:00 +10:00
Berwyn Jamesson
f85e7b500b
Put Specialization behind a feature () 2020-08-07 21:05:00 +10:00
Berwyn Jamesson
ad8dc8c4c7
Add an off-by-default 'unstable' flag ()
* Add an off-by-default 'unstable' flag

* Remove explicit web framework feature names

Having forgotten that deps and features can't have the same name,
attempts to better document all the features in one place were
misplaced.

* Split up tests on Travis

`cargo test` doesn't allow `--workspace` and `--features`
simultaneously, so we're forced to test each package separately in order
to manually specify features (or in this case, test everything but
unstable)

* Update Travis Config

- Document the state of Cargo workspaces and features
- Update the benchmarks to trickle down the 'unstable' feature
2020-07-21 22:04:48 +10:00
Chris Wong
ee82847d8f Silence "specialization is incomplete" warning
See .

This doesn't need a release (or a changelog entry) as it just fixes a warning.
2020-06-22 17:36:22 +10:00
Chris Wong
34a79ee706 Release 0.22 2020-06-20 19:57:51 +10:00
Chris Wong
4d1f18ad8b Fix compiletest 2020-04-24 23:46:57 +10:00
Christopher Czyba
ba3f12a65a [actix-web] Only support actix-web 2.0.0 from now on
As discussed in Pull Request  we will only support actix-web 2.0.0
from this point onwards. If you still wish to use a previous version of
actix-web you'll have to pin the version.
2020-03-07 13:46:41 +01:00
Christopher Czyba
8e8e078dc4 [actix-web] Add support for actix-web >= 2.0.0
In order to support both actix-web < 2.0.0 and >= 2.0.0 at the same
time I added a feature actix-web-2, which enables the actix-web
dependency with the respective version und the name active-web-2-dep
and the futures dependency which is required(?) for implementing the
Responder trait for >= 2.0.0.

Thus the user of maud has the choice to use actix-web in the version
they prefer.
2020-03-03 20:20:30 +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
90cc11e9ce Add dyn 2019-06-16 22:18:19 +12:00
Jacob
d18cd75b39 Updated actix-web () 2019-06-16 18:03:40 +12:00