Skip to content

Commit 5bd485a

Browse files
committed
Fix docs
Signed-off-by: Michael X. Grey <[email protected]>
2 parents b3991c1 + ce53f1b commit 5bd485a

File tree

3 files changed

+25
-43
lines changed

3 files changed

+25
-43
lines changed

README.md

+16-34
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,26 @@ There are several different categories of problems that bevy impulse sets out to
1717
# Helpful Links
1818

1919
* [Introduction to workflows](https://docs.google.com/presentation/d/1_vJTyFKOB1T0ylCbp1jG72tn8AXYQOKgTGh9En9si-w/edit?usp=sharing)
20+
* [Bevy Impulse Docs](https://docs.rs/bevy_impulse/latest/bevy_impulse/)
2021
* [Bevy Engine](https://bevyengine.org/)
2122
* [Bevy Cheat Book](https://bevy-cheatbook.github.io/)
2223
* [Rust Book](https://doc.rust-lang.org/stable/book/)
24+
* [Install Rust](https://www.rust-lang.org/tools/install)
2325

24-
# Experimenting
26+
# Compatibility
2527

26-
### Install Rust
28+
Bevy Impulse is supported across several releases of Bevy:
2729

28-
Follow [official guidelines](https://www.rust-lang.org/tools/install) to install the Rust language.
30+
| bevy | bevy_impulse |
31+
|------|--------------|
32+
|0.14 | 0.2 |
33+
|0.13 | 0.1 |
34+
|0.12 | 0.0.x |
2935

30-
### Get source code
31-
32-
```
33-
$ git clone https://github.com/open-rmf/bevy_impulse
34-
```
35-
36-
### Build
37-
38-
To build the library simply go to the root directory of the repo and run
39-
40-
```
41-
$ cargo build
42-
```
43-
44-
### Test
45-
46-
The library's tests can be run with
47-
48-
```
49-
$ cargo test
50-
```
51-
52-
### View Documentation
53-
54-
Like most Rust projects, the library documentation is written into the source code and can be built and viewed with
55-
56-
```
57-
$ cargo doc --open
58-
```
59-
60-
After the first release of the library, the documentation will be hosted on docs.rs. We will update this README with a link to that documentation once it is ready.
36+
The `main` branch currently targets bevy version 0.12 (bevy impulse 0.0.x)
37+
so that new developments are still compatible for users of bevy 0.12. New features
38+
will be forward-ported as soon as possible. `main` will move forward to newer
39+
versions of bevy when we judge that enough of the ecosystem has finished migrating
40+
forward that there is no longer value in supporting old versions. In the future
41+
we may come up with a more concrete policy for this, and we are open to input on
42+
the matter.

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
//! ![sense-think-act workflow](https://raw.githubusercontent.com/open-rmf/bevy_impulse/update_docs/assets/figures/sense-think-act_workflow.svg)
18+
//! ![sense-think-act workflow](https://raw.githubusercontent.com/open-rmf/bevy_impulse/main/assets/figures/sense-think-act_workflow.svg)
1919
//!
2020
//! Bevy impulse is an extension to the [Bevy](https://bevyengine.org) game
2121
//! engine that allows you to transform [bevy systems](https://bevyengine.org/learn/quick-start/getting-started/ecs/)

src/map.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ use std::future::Future;
2929
pub struct MapDef<F>(F);
3030

3131
/// Maps are used to perform simple transformations of data which do not require
32-
/// any direct [`World`] access or any persistent system state. They are more
33-
/// efficient than [`Service`] or [`Callback`] when suitable.
32+
/// any direct [`World`][4] access or any persistent system state. They are more
33+
/// efficient than [`Service`][5] or [`Callback`][6] when suitable.
3434
///
3535
/// There are two kinds of functions that can be used as maps:
3636
/// * **Blocking**: A regular function with a single input and any output.
3737
/// All system execution will be blocked while this is running, similar to flushing [`Commands`].
3838
/// * **Async**: A function that takes a single input and returns something that implements the [`Future`] trait.
39-
/// The [`Future`] will be executed in the [`AsyncComputeTaskPool`] unless the `single_threaded_async` feature is active.
39+
/// The [`Future`] will be executed in the [`AsyncComputeTaskPool`][7] unless the `single_threaded_async` feature is active.
4040
///
4141
/// If you want to insert a map into a workflow or impulse chain, you can pass your function into one of the following,
4242
/// depending on whether you want blocking or async:
@@ -46,7 +46,7 @@ pub struct MapDef<F>(F);
4646
/// * [`Builder::create_map_block`](crate::Builder::create_map_block)
4747
/// * [`Impulse::map_block`](crate::Impulse::map_block)
4848
/// * **Async**
49-
/// * [`Chain::map_async`](crate::Chain:::map_async)
49+
/// * [`Chain::map_async`](crate::Chain::map_async)
5050
/// * [`Chain::map_async_node`](crate::Chain::map_async_node)
5151
/// * [`Builder::create_map_async`](crate::Builder::create_map_async)
5252
/// * [`Impulse::map_async`](crate::Impulse::map_async)
@@ -65,10 +65,10 @@ pub struct MapDef<F>(F);
6565
/// [1]: AsMap::as_map
6666
/// [2]: IntoBlockingMap::into_blocking_map
6767
/// [3]: IntoAsyncMap::into_async_map
68-
/// [World]: bevy_ecs::prelude::World
69-
/// [Service]: crate::Service
70-
/// [Callback]: crate::Callback
71-
/// [AsyncComputeTaskPool]: bevy_tasks::AsyncComputeTaskPool
68+
/// [4]: bevy_ecs::prelude::World
69+
/// [5]: crate::Service
70+
/// [6]: crate::Callback
71+
/// [7]: bevy_tasks::AsyncComputeTaskPool
7272
#[allow(clippy::wrong_self_convention)]
7373
pub trait AsMap<M> {
7474
type MapType;

0 commit comments

Comments
 (0)