#abscissa #tokio #shell #logging #error

abscissa_tokio

Support for launching Tokio runtimes within Abscissa applications

5 unstable releases

0.6.0-pre.3 Oct 6, 2021
0.6.0-pre.2 Jul 19, 2021
0.6.0-pre.1 Feb 2, 2021
0.5.1 Feb 11, 2020
0.0.0 Jul 18, 2019
Download history 428/week @ 2021-06-23 112/week @ 2021-06-30 151/week @ 2021-07-07 232/week @ 2021-07-14 295/week @ 2021-07-21 336/week @ 2021-07-28 153/week @ 2021-08-04 67/week @ 2021-08-11 148/week @ 2021-08-18 453/week @ 2021-08-25 135/week @ 2021-09-01 178/week @ 2021-09-08 241/week @ 2021-09-15 251/week @ 2021-09-22 189/week @ 2021-09-29 279/week @ 2021-10-06

943 downloads per month
Used in 3 crates

Apache-2.0

105KB
2K SLoC

Abscissa

abscissa_tokio: Tokio component for Abscissa

Crate Docs Apache 2.0 Licensed Build Status

Support for launching Tokio runtimes within Abscissa applications.

Documentation

About

Where normally you'd use something like the tokio::main macro to launch the Tokio runtime, in Abscissa the framework is launched by calling abscissa_core::boot from your application's main().

This means Abscissa applications need a slightly different convention for starting the Tokio runtime, and ideally one which allows all application subcomponents to register themselves before the runtime is started.

This crate handles instantiating the Tokio runtime as an Abscissa Component, allowing other application components to express they have a Tokio dependency so Abscissa can inject the Tokio component as a dependency.

Once the application has booted and all subcomponents have been registered with the Tokio runtime, it allows (any of) your application's Runnable types to start the runtime without having to hold a lock on application state.

See documentation for usage instructions.

License

The abscissa_tokio crate is distributed under the terms of the Apache License (Version 2.0).

Copyright © 2020 iqlusion

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependencies

~7MB
~129K SLoC