Commit graph

45 commits

Author SHA1 Message Date
Chris Wong
eb4ef2f969 Travis: build and deploy the book 2019-03-27 22:13:47 +13:00
Chris Wong
c5e8eb4d5f Travis: split build into jobs
- Change benchmarks build to use `cargo test --benches`. This runs the
  benchmarks and compiles faster than `cargo bench`.

Closes 
2019-03-27 21:00:00 +13:00
Chris Wong
dae5074c8d Build all the features together (apparently it works now) 2019-03-25 21:22:38 +13:00
Chris Wong
5b027d08ae
Remove maud_extras crate ()
I don't think the examples in this crate are very useful, or demonstrate how to best use the library.
2019-03-25 20:36:23 +13:00
Chris Wong
9fc9ea5c60 Use clippy instead of clippy-preview 2018-12-09 11:54:21 +13:00
Chris Wong
c70bd98656 Skip Clippy if it is missing 2018-12-09 11:37:52 +13:00
Chris Wong
2e41db8c70 Run all the tests at the beginning 2018-12-09 10:46:05 +13:00
Isaac van Bakel
59d9ec9620 Moved compiletests into the maud crate 2018-11-05 23:31:36 +00:00
Isaac van Bakel
ccf54ad6eb Try to change travis build ordering to fix compiletests
Multiple versions of the maud base crate get built, so compiletest
doesn't know which one to use in the same way that cargo would.
A possible solution is to build a canonical version of the crate first
(no features) and then explicitly run the compiletest tests. After, we
run builds and tests as normal, excluding the compiletest tests.
2018-10-24 17:34:00 +01:00
Chris Wong
66ddbcac98 Remove maud_lints
It's undocumented, it doesn't do much, and it keeps breaking.
2018-09-03 20:01:39 +12:00
Chris Wong
f3d967c020 Travis: tweak build commands to work around 2018-08-26 20:46:29 +12:00
Chris Wong
059ca8d210 Add benchmarks to Travis build 2018-07-29 21:23:37 +12:00
Chris Wong
d7d3eb600e Install Clippy from rustup 2018-07-18 19:52:58 +12:00
Coleman McFarland
8ce98f689f Build features separately.
Compiling rocket and actix-web together presents problems, since ring - a
native dependency - cannot have more than one version linked.
2018-06-15 20:23:21 +12:00
Chris Wong
75763dd8a6 Travis: add maud_extras to Clippy invocation 2018-06-09 20:41:36 +12:00
Chris Wong
798ed2279d Travis: work around Clippy bug 2018-04-16 20:49:12 +12:00
Chris Wong
bd228c01a9 Travis: don't use --manifest-path for Clippy
For some reason, `cargo clippy` ignores the tests when run with the
`--manifest-path` option.
2017-07-31 22:05:23 +12:00
Chris Wong
3de5f7f3e9 Move lints into their own maud_lints crate 2017-07-30 22:18:26 +12:00
Chris Wong
2353a64ce9 Merge branch 'proc-macro' 2017-07-30 14:06:03 +12:00
Chris Wong
565360f2d5 Travis: remove tab check
We should be using a more comprehensive formatting check based on
rustfmt instead.
2017-07-29 20:14:13 +12:00
Chris Wong
f1fbea181a Reduce duplication in Travis config 2017-07-29 20:06:28 +12:00
Chris Wong
2213c0dc32 Move escaping routines into a shared maud_htmlescape crate 2017-07-29 20:03:00 +12:00
Chris Wong
88c8a7e8c9 Revert "Silence collapsible_if warnings ()"
This reverts commit a72877cb55.
2017-07-23 13:58:42 +12:00
Chris Wong
a72877cb55 Silence collapsible_if warnings () 2017-07-08 20:21:04 +12:00
Chris Wong
f8f0b0049f Travis: show commit range in tab checker 2017-03-07 21:46:02 +13:00
Chris Wong
d8fa8b18fa Travis: forbid tabs 2017-03-07 21:36:51 +13:00
Chris Wong
7925fbad43 Travis: add cargo-clippy to $PATH 2016-12-17 14:18:48 +13:00
Chris Wong
2063e61211 Travis: don't fail the build if Clippy is broken 2016-12-12 21:33:50 +13:00
Chris Wong
e05af0a326 Add maud_extras crate
Closes 
2016-11-22 22:17:15 +13:00
Chris Wong
a3908faf24 Travis: run Clippy :) 2016-11-06 12:49:44 +13:00
Chris Wong
fedaded75a Release 0.11.1 2016-09-25 12:50:33 +13:00
Chris Wong
f12efe4299 Rewrite everything to use Strings instead of writers
After fiddling around with zero-allocation solutions, I concluded that
all non-allocating approaches are too annoying to work with in realistic
code. Using closures leads to yak-shaving with lifetimes; and because
Iron needs to take ownership of the response body we often end up
cloning the input data anyway.

Removing this constraint has let me simplify the entire system, removing
a net 300 lines from the library. The `html!` macro no longer takes a
writer, and instead returns a `PreEscaped<String>`. This means that the
result of an `html!` can be spliced directly into another `html!`,
removing the need for the `impl Template` rigmarole.

To rub it in, benchmarks show the new code is in fact *faster* than it
was before. How lovely.
2016-09-23 19:22:22 +12:00
Chris Wong
0379073308 Add iron-maud to Travis 2016-09-20 23:37:10 +12:00
Chris Wong
c68f98d3a7 Expose Escaper type 2015-09-12 18:48:14 +12:00
Chris Wong
dd97989a2b Travis: Use Rust Nightly 2015-05-26 22:35:10 +12:00
Chris Wong
054453be88 Travis: use container-based infrastructure
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
2015-04-15 18:18:12 +12:00
Chris Wong
4653b2e2d8 Add html_debug! macro; remove print-expansion feature 2015-04-13 20:41:12 +12:00
Chris Wong
e5711929e3 print-expansion for all your expansion printing needs 2015-04-11 10:19:28 +12:00
Chris Wong
9b1ba74b7d Simplify Travis script 2015-02-27 17:26:14 +13:00
Chris Wong
6f08b62922 Abandon all hope of getting doc uploads to work 2015-01-29 14:57:28 +13:00
Chris Wong
9abc8003f3 Update Rust CI token (again) 2015-01-28 21:54:34 +13:00
Chris Wong
f1ec5b79e8 Update Rust CI token 2015-01-19 17:07:53 +13:00
Chris Wong
2ec018b00d Upload docs to rust-ci 2014-12-19 12:44:03 +13:00
Chris Wong
b40103d66f Fix Travis 2014-12-19 12:41:16 +13:00
Chris Wong
34031b2f95 Add Travis 2014-12-17 21:33:52 +13:00