60 Commits

Author SHA1 Message Date
Martin Grigorov
510b9ea9dc
macros: Update the version used for Git tag sample for release steps (#7598)
Change 1.x.y to x.y.z so that it does not become obsolete again when
tokio-macros 3.x is released
2025-09-09 15:52:58 +02:00
Taiki Endo
7f09959b0a
chore: use [lints] to address unexpected_cfgs lint (#7124) 2025-01-25 17:46:21 +01:00
Alice Ryhl
cc974a646b
chore: prepare tokio-macros v2.5.0 (#7078) 2025-01-08 16:56:31 +01:00
Alice Ryhl
6a1a7b1591
chore: prepare tokio-macros v2.4.0 (#6707) 2024-07-23 14:45:06 +02:00
Alice Ryhl
15cd5146d4
chore: increase MSRV to 1.70 (#6645) 2024-07-22 18:01:27 +00:00
Alice Ryhl
65cbf730de
chore: prepare tokio-macros v2.3.0 (#6600) 2024-05-30 13:21:51 -07:00
Carl Lerche
49eb26f159
chore: prepare Tokio v1.34.0 release (#6138)
This also includes:
  - tokio-macros v2.2.0
2023-11-09 11:22:54 -08:00
Alice Ryhl
944024e8eb
chore: update rust-version to 1.63 in all crates (#6126) 2023-11-04 09:07:22 +01:00
Alice Ryhl
58acb56a17
ci: update nightly to 2023-10-21 (#6103) 2023-10-24 14:15:25 +00:00
Taiki Endo
af6c87a045
chore: upgrade remaining 2018 edition crates to 2021 edition (#5788) 2023-06-12 02:21:50 +09:00
Alice Ryhl
66c62a4b74
chore: prepare tokio-macros v2.1.0 (#5649) 2023-04-25 17:07:08 +02:00
Alice Ryhl
614fe357fc
chore: prepare tokio-macros v2.0.0 (#5580) 2023-03-27 22:45:54 +02:00
David Pedersen
92d33b7181
macros: update syn (#5572) 2023-03-23 23:38:59 +01:00
Alice Ryhl
0c8e8248f8
tokio: bump MSRV to 1.56 (#5559) 2023-03-21 18:06:47 +01:00
Taiki Endo
993a60b7c7
chore: prepare tokio-macros v1.8.2 (#5246) 2022-11-30 22:10:13 +09:00
Thomas de Zeeuw
766f22fae3 Prepare tokio-macros 1.8.1 2022-11-29 15:08:09 +00:00
Alice Ryhl
3f8a690c01
chore: prepare tokio-macros 1.8.0 (#4742) 2022-06-04 22:04:12 +02:00
Carl Lerche
49fff47111
chore: increase MSRV to 1.49. (#4457)
Rust 1.49 was released on December 31, 2020, which meets our MSRV policy
of a minimum of 6 months.
2022-01-31 13:26:12 -08:00
Carl Lerche
f64673580d
chore: prepare Tokio v1.15.0 release (#4320)
Includes `tokio-macros` v1.7.0
2021-12-15 10:36:09 -08:00
Taiki Endo
1a423b3322
chore: remove doc URL from Cargo.toml (#4251)
https://doc.rust-lang.org/cargo/reference/manifest.html#the-documentation-field

> If no URL is specified in the manifest file, crates.io will
> automatically link your crate to the corresponding docs.rs page.
2021-11-23 11:53:32 +01:00
Taiki Endo
cf3206842c
chore: bump MSRV to 1.46 (#4254) 2021-11-23 12:09:24 +09:00
Alice Ryhl
623c09c52c
chore: prepare tokio-macros 1.6.0 (#4239) 2021-11-16 09:54:07 +01:00
Alice Ryhl
e184205421
chore: prepare tokio-macros 1.6.0 (#4197) 2021-10-29 18:33:40 +02:00
Alice Ryhl
bb6a292d0a
chore: prepare tokio-macros v1.5.0 (#4167) 2021-10-13 15:51:09 +02:00
Alice Ryhl
d39c9ed9dc
chore: prepare tokio-macros 1.4.1 (#4142)
This reverts commit 33f0a1fd2e5dd2c9f8bc3066fda38911828d26f5.
2021-09-30 10:38:52 +02:00
Noah Kennedy
44cfe10ee5
chore: prepare tokio-macros 1.4.0 (#4139) 2021-09-29 23:30:47 +02:00
Alice Ryhl
c505a2f81a
chore: prepare tokio-macros 1.3.0 (#3931) 2021-07-07 10:58:02 +02:00
Alice Ryhl
3a659c47c3
chore: prepare tokio-mcaros v1.2.0 (#3783) 2021-05-14 18:20:17 +02:00
Taiki Endo
f9ce18a524
macros: improve diagnostics on type mismatch (#3766) 2021-05-09 18:58:05 +09:00
Taiki Endo
36d7dab504
chore: remove html_root_url (#3489)
Co-authored-by: Alice Ryhl <alice@ryhl.io>
2021-02-18 14:11:39 -08:00
Alice Ryhl
d41882e2a1
chore: prepare tokio-macros 1.1.0 (#3505) 2021-02-05 22:21:29 +01:00
Carl Lerche
a66017f049
chore: prepare Tokio 1.0 release (#3319) 2020-12-23 09:26:14 -08:00
Carl Lerche
473ddaa277
chore: prepare for Tokio 1.0 work (#3238) 2020-12-09 09:42:05 -08:00
Alice Ryhl
1c28c3b0a8
macros: prepare tokio-macros 0.3.1 (#3042) 2020-10-26 10:02:39 +01:00
Carl Lerche
dc9742fbea
chore: post release Cargo.toml fixes (#2963) 2020-10-15 11:46:10 -07:00
Carl Lerche
6ccefb77e2
chore: prepare for v0.3 breaking changes (#2747)
Bug fixes will be applied to the v0.2.x branch.
2020-08-07 20:27:53 -07:00
Carl Lerche
c6fc1db698
chore: prepare v0.2.12 release (#2278)
Also includes `tokio-macros` v0.2.5.
2020-02-27 10:18:01 -08:00
Carl Lerche
00e3c29e48
chore: prepare v0.2.11 release (#2179)
Also bumps:
- tokio-macros: v0.2.4
2020-01-27 10:32:07 -08:00
Carl Lerche
8cf98d6946
Provide select! macro (#2152)
Provides a `select!` macro for concurrently waiting on multiple async
expressions. The macro has similar goals and syntax as the one provided
by the `futures` crate, but differs significantly in implementation.

First, this implementation does not require special traits to be
implemented on futures or streams (i.e., no `FuseFuture`). A design goal
is to be able to pass a "plain" async fn result into the select! macro.

Even without `FuseFuture`, this `select!` implementation is able to
handle all cases the `futures::select!` macro can handle. It does this
by supporting pre-poll conditions on branches and result pattern
matching. For pre-conditions, each branch is able to include a condition
that disables the branch if it evaluates to false. This allows the user
to guard futures that have already been polled, preventing double
polling. Pattern matching can be used to disable streams that complete.

A second big difference is the macro is implemented almost entirely as a
declarative macro. The biggest advantage to using this strategy is that
the user will not need to alter the rustc recursion limit except in the
most extreme cases.

The resulting future also tends to be smaller in many cases.
2020-01-22 18:59:22 -08:00
Carl Lerche
7fb54315f1
macros: fix breaking changes (#2069)
Brings back old macro implementations and updates the version of
tokio-macros that tokio depends on.

Prepares a new release.
2020-01-07 14:29:44 -08:00
Artem Vorotnikov
ffd4025fce chore: prepare tokio-macros v0.2.2 release (#2068) 2020-01-07 16:44:27 -05:00
Carl Lerche
2d78cfe56a
chore: prepare v0.2.5 release (#1984)
Also includes:
- `tokio-macros` v0.2.1
2019-12-18 13:07:27 -08:00
Carl Lerche
a81e2722a4
chore: prepare v0.2.0 release (#1822) 2019-11-26 09:17:27 -08:00
Carl Lerche
7b4c999341
default all feature flags to off (#1811)
Changes the set of `default` feature flags to `[]`. By default, only
core traits are included without specifying feature flags. This makes it
easier for users to pick the components they need.

For convenience, a `full` feature flag is included that includes all
components.

Tests are configured to require the `full` feature. Testing individual
feature flags will need to be moved to a separate crate.

Closes #1791
2019-11-22 15:55:10 -08:00
Carl Lerche
0d38936b35
chore: refine feature flags (#1785)
Removes dependencies between Tokio feature flags. For example, `process`
should not depend on `sync` simply because it uses the `mpsc` channel.
Instead, feature flags represent **public** APIs that become available
with the feature enabled. When the feature is not enabled, the
functionality is removed. If another Tokio component requires the
functionality, it is stays as `pub(crate)`.

The threaded scheduler is now exposed under `rt-threaded`. This feature
flag only enables the threaded scheduler and does not include I/O,
networking, or time. Those features must be explictly enabled.

A `full` feature flag is added that enables all features.

`stdin`, `stdout`, `stderr` are exposed under `io-std`.

Macros are used to scope code by feature flag.
2019-11-18 07:00:55 -08:00
Jon Gjengset
5efe31f2ed Prepare for release of 0.2.0-alpha.6 (#1617)
Note that `tokio-timer` and `tokio-tls` become 0.3.0-alpha.6 (not 0.2.0)
2019-09-30 18:35:52 -04:00
Taiki Endo
ddbb0c3836
macros: fix handling of arguments of #[tokio::main] attribute (#1578) 2019-09-23 03:05:04 +09:00
Carl Lerche
80ba2a4ff6
Release 0.2.0 alpha.5 (#1576) 2019-09-19 13:39:35 -07:00
Sean McArthur
15dc0563b7 prepare v0.2.0-alpha.4 (#1509) 2019-08-29 12:59:10 -07:00
Carl Lerche
a59e096c47
prepare v0.2.0-alpha.3 release (#1505) 2019-08-28 15:04:42 -07:00