Commit Graph

63 Commits

Author SHA1 Message Date
David Mládek 89fec69b01
Use explicit CI runner version (#2996) 2024-10-18 21:04:24 +02:00
Jonas Platte 928d31d1d7
ci: Only save cache from main (#2946) 2024-09-29 21:15:49 +00:00
Jonas Platte 689ca1aea2
Update MSRV for all crates to 1.75 (#2943) 2024-09-28 21:21:41 +00:00
Shawn 855dc191b1
Update prost to 0.13 (#2829) 2024-09-20 21:06:41 +02:00
David Mládek 806bc26e62
CI: Pin nightly version for `cargo public-api-crates` (#2779) 2024-06-09 23:33:25 +02:00
Afifurrohman e3bb7083c8
ci: Bump `crate-ci/typos` to v1.20.8 (#2711) 2024-04-16 02:56:01 -04:00
Jonas Platte 4d65ba0215
ci: Unbreak cargo-deny action (#2613) 2024-02-22 09:59:05 +01:00
Taiki Endo 5b6204168a
Update actions/checkout action to v4 (#2495) 2024-01-07 09:28:54 +01:00
David Pedersen 6e0955ed9b
Fix CI (#2434) 2023-12-17 12:11:40 +01:00
Jonas Platte 4d681de0dd
Clean up Q&A discussion template (#2342) 2023-11-24 14:13:56 +01:00
Jonas Platte 92253fe7b3
Fix error in Q&A discussion template (#2341) 2023-11-24 12:21:13 +01:00
Jonas Platte 9a931605dd
GitHub: Add a Q&A discussion template (#2340) 2023-11-24 11:57:17 +01:00
David Pedersen 43b14a5f02
Update to latest versions of hyper and http-body (#1882)
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2023-11-23 11:03:03 +00:00
Jonas Platte e84d563b26
Improve documentation of axum::Form (#2289) 2023-10-26 06:37:19 +09:00
Jonas Platte 4120195c53 Check for typos in CI 2023-08-08 11:27:45 +02:00
Alex Butler 26daec2b17
Update tokio-tungstenite to 0.19 (#2021)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-06-23 00:03:30 +02:00
tottoto 018d65da14
Use axum-macros/rust-toolchain file in ci (#1939) 2023-04-17 10:55:18 +02:00
tottoto de7dc69eeb
Resolve ci warnings (#1938) 2023-04-15 17:02:47 +02:00
tottoto 7219fd8df5
Update ci config to setup rust (#1937) 2023-04-15 09:46:43 +02:00
David Pedersen 39bb28130d
Enable `println` warning (#1929) 2023-04-14 22:26:56 +02:00
Jonas Platte eec4195eac
Fix broken links in the documentation (#1878) 2023-03-23 14:55:56 +00:00
Jonas Platte dc480f7b0e
Re-integrate examples into the root workspace (#1466)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-03-10 12:02:11 +01:00
David Pedersen e6ff0281ae
Try `cargo public-api-crates` on CI (#1761) 2023-02-16 22:41:41 +01:00
tottoto b07918b213
Update to tonic 0.8 (#1700) 2023-01-20 10:34:44 +01:00
David Pedersen d11af167ca
Replace `actions-rs/toolchain@v1` with stable alternative (#1687) 2023-01-08 16:41:59 +01:00
Jonas Platte 1ff5ab5ba2 Add emoji for contact links (new issue page) 2022-12-09 11:00:00 +01:00
Jonas Platte 15b6f8cc70
Add "I have looked for existing issues" checkbox to issue templates (#1632) 2022-12-09 09:30:25 +00:00
Jonas Platte b372244099
Guide people to the right places to ask questions (#1631)
* README: Link to discussions instead of issues in Getting Help section

* Link to Discussions and Discord on new issue page
2022-12-09 10:14:31 +01:00
Georg Semmler d5de3bc7e3
Improve compile errors for unimplemented traits (#1436)
* Improve `debug_handler` to use the correct span for specific bounds

This results in better localised error messages, as they now point
directly to the corresponding argument instead of to the macro itself.

* Improve some error messages behind a `nightly-error-messages` feature
flag

This uses the nightly only `rustc_on_unimplemented` attribute to improve
some error messages when users try to use invalid handler functions.
This should be seen as prove of concept, not as full solution for all
potential error cases.

The underlying feature is currently marked as permanently unstable, but
I'm working on getting this specific attribute (or an attribute with
different name, similar functionality) ready to work on a stable compiler.

* Apply suggestions from code review

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

* Enable the `nightly-error-messages` feature unconditionally for nightly compilers

* Use a nightly compiler to run the axum-marcos compile fail tests

* update to newer nightly

* Run axum-macros tests on nightly

* tweak compile error hints a bit

* more tweaks

* update test

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2022-11-19 12:45:03 +01:00
Logan Keenan 31638a2b22
Add tokio feature & make tokio optional for WASM support (#1382)
* add server feature and make tokio and hyper/server and tcp optional

* address review comments

* don't mention any specific runtimes in the example

* sort deps

* add `tokio` feature when adding `ws`

* don't always pull in tower feature that pulls in tokio io stuff

* remove usage of `tokio_cr`

* changelog

* depend on tokio version that supports wasm

* don't make it sound like tokio doesn't support wasm

* call out new default feature

Co-authored-by: Fisher Darling <fdarlingco@gmail.com>
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2022-09-25 15:10:33 +00:00
Jonas Platte 7cbb7cf135
Use new Cargo features to avoid implicit features for optional dependencies (#1239)
* Fix changelog entry for MSRV change in axum-extra 0.3.5

* Bump MSRV to 1.60 for axum, axum-extra, axum-macros

* Use new Cargo features to avoid implicit features for optional dependencies
2022-08-09 18:43:02 +02:00
David Pedersen d9ef24c5ff
Replace async-graphql with link to async-graphql's own examples (#1234)
* Replace async-graphql with link to async-graphql's own examples

* exclude async-graphql directory

* does this fix it?

* apparently this needs to be sorted as well

* Update .github/workflows/CI.yml

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-08-09 14:56:50 +00:00
Max Countryman 95c6621db9
Improve workspace caching on CI (#1229)
* improve workspace caching

This improves workspace caching performance by using the workspace parameter of rust-cache@v2.

* apply the same technique here as well
2022-08-09 15:18:10 +02:00
Jonas Platte f0f60681ef
Fix intra-doc links on docs.rs (#1205)
* Use version 2 of Cargo's feature resolver

* Increase minimum version of tungstenite

Tungstenite 0.17.1 has a higher MSRV, and there should be no reason to
use it over 0.17.2.

* Clean up and fix MSRV CI job

* Fix some intra-doc links not resolving correctly on docs.rs

* Bump minimum version of tower

… to avoid dependencies with a broken minimum-versions chain.
2022-07-28 19:14:31 +02:00
David Pedersen 3bcc8fb07d fix typo in CI.yml 2022-07-26 14:03:35 +02:00
David Pedersen f6b1d35c51
Use minimal dependency versions for MSRV tests on CI (#1109) 2022-06-27 20:44:20 +02:00
David Pedersen 93251fa203
Bump MSRV to 1.56 and update to the 2021 edition (#1098) 2022-06-17 20:11:35 +02:00
David Pedersen 968ee44631
Sort dependencies in `Cargo.toml`s (#1076)
* sort dependencies

* check sorted deps on CI

* this should fail

* does caching matter?

* fix sorting
2022-06-10 08:59:17 +02:00
David Pedersen 1fe4558362
Move examples to separate workspace (#978)
* Move examples to separate workspace

* update commands to run examples

* remove debug
2022-04-29 18:53:41 +02:00
David Pedersen debc3f5be9
Don't run nightly on CI (#870)
* Exclude sqlx example

Getting an ICE
https://github.com/tokio-rs/axum/runs/5602144413?check_suite_focus=true.
Will look into that later.

* actually it was nightly's fault

* and don't test things on nightly
2022-03-18 16:28:23 +01:00
Jonas Platte b6862ff63d
ci: Set CARGO_TERM_COLOR = always to get colored logs (#831) 2022-03-05 12:13:53 +01:00
David Pedersen 15914c4f15
Remove axum-debug code (#740) 2022-01-31 22:46:44 +01:00
David Pedersen 5698fb8be9
Add metrics example (#671) 2021-12-28 15:58:48 +01:00
Kai Jewson 9ed18d92cf
Use `AtomicU32` in `RouteId` (#616) 2021-12-12 14:19:30 +00:00
David Pedersen a16ea65031
Add `axum-extra` crate (#536)
* Add `axum-extra` crate

Empty for now but now we have a place to put stuff.

I'll make a PR for moving over https://github.com/davidpdrsn/axum-resource.

* remove `authors` field from `Cargo.toml`s
2021-11-17 20:00:32 +00:00
David Pedersen 9a410371a6
Move `axum-handle-error-extract` into axum (#534)
* Move `axum-handle-error-extract` into axum

With 0.4 underway we can now nuke `axum-handle-error-extract` and move
its code directly into axum.

So this replaces the old `HandleErrorLayer` with one that supports async
functions and extractors.

* changelog

* fix CI
2021-11-17 19:09:58 +00:00
David Pedersen c7b8813c47
Add `trybuild` tests for axum-debug (#501)
The things are also covered by the doc tests but this also gives us
assertions on the errors produced, which is the whole point of this
crate :)
2021-11-11 20:26:08 +00:00
David Pedersen 5da3f34b3e
Clean up axum-debug crate (#498)
* Clean up axum-debug crate

Mostly just brings the crate more in line with the rest of the crates in
the workspace.

I've also removed the axum-debug-macros crate since axum-debug only
contained one re-export from axum-debug-macros. So we didn't need two
crates. Can always bring the "backend" crate back if we need things in
axum-debug that aren't proc-macros.

* Just testing: This should make CI fail

* Misc CI clean up

* fix intentional breakage

* fix changelog

* Remove rustfmt config for now as it gives warnings on stable

* Fix paths
2021-11-11 17:33:33 +01:00
Jonas Platte 9c77ee0295
Use nightly clippy & rustfmt for more style checks (#487) 2021-11-09 11:53:57 +00:00
David Pedersen ba4d8a2357
Move axum crate into workspace subfolder (#458)
* Move axum crate into workspace subfolder

Over time I imagine we're gonna have other crates in this repo that
provide utilities or integrations for axum. This prepares for that by
moving the main axum crate into its own folder.

The README situation is a bit annoying because we want `./README.md`
for viewing the repo on github but `axum/README.md` for crates.io. For
now I've just copy/pasted it and added CI step to make sure they're
identical.

* update changelog link

* Add licenses to all examples

* is this how you install `diff`?

* or maybe this is how?

* fix readme links

* like this?

* fix cargo-deny step

* Try making root readme a symlink

* remove compare readme step

not needed since readme in repo root is now a symlink

* Revert "Add licenses to all examples"

This reverts commit ab321b7fb9.
2021-11-03 12:38:48 +01:00