Skip to content

Commit 1ea545c

Browse files
committed
Move to semantic versioning
An earlier change updated all of the crate version numbers to match a Zephyr release. This is problematic for several reasons: - Zephyr releases don't correlate with semantic versions. In general, it is probably best to assume every Zephyr release is a semantic change, and should have a major version bump. - Cargo does make some assumptions about the meaning of semantic versions (for example, that it can use a version that would be considered semantically equivalent. - The Rust support consists of multiple crates, and there is no particular reason to tie the version numbers of those together. At this point, the Rust support for Zephyr is experimental, and definitely needs a 0.x.y version number. Revert everything back to 0.1.0. As this stabilizes more, we can start to come up with appropriate numbers. Although we are quite a w ways from it making sense to include any of this in the crate ecosystem, it will still be helpful to have meaningful numbers if we ever do decide to do that. Signed-off-by: David Brown <[email protected]>
1 parent eda3a85 commit 1ea545c

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ your application directory, with options set so that it can find the Zephyr supp
7070
that the output will be contained within the Zephyr build directory.
7171

7272
The :file:`Cargo.toml` will need to have a ``[lib]`` section that sets ``crate-type =
73-
["staticlib"]``, and will need to include ``zephyr = "3.7.0"`` as a dependency. You can use
73+
["staticlib"]``, and will need to include ``zephyr = "0.1.0"`` as a dependency. You can use
7474
crates.io and the Crate ecosystem to include any other dependencies you need. Just make sure that
7575
you use crates that support building with no-std.
7676

@@ -115,7 +115,7 @@ To your ``Cargo.toml`` file, add the following:
115115
.. code-block:: toml
116116
117117
[build-dependencies]
118-
zephyr-build = "3.7.0"
118+
zephyr-build = "0.1.0"
119119
120120
Then, you will need a ``build.rs`` file to call the support function. The following will work:
121121

docgen/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[package]
55
# This must be rustapp for now.
66
name = "rustapp"
7-
version = "3.7.0"
7+
version = "0.1.0"
88
edition = "2021"
99
description = "A small application to generate documentation"
1010
license = "Apache-2.0 or MIT"
@@ -13,4 +13,4 @@ license = "Apache-2.0 or MIT"
1313
crate-type = ["staticlib"]
1414

1515
[dependencies]
16-
zephyr = "3.7.0"
16+
zephyr = "0.1.0"

samples/hello_world/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[package]
55
# This must be rustapp for now.
66
name = "rustapp"
7-
version = "3.7.0"
7+
version = "0.1.0"
88
edition = "2021"
99
description = "A sample hello world application in Rust"
1010
license = "Apache-2.0 or MIT"
@@ -13,5 +13,5 @@ license = "Apache-2.0 or MIT"
1313
crate-type = ["staticlib"]
1414

1515
[dependencies]
16-
zephyr = "3.7.0"
16+
zephyr = "0.1.0"
1717
log = "0.4.22"

samples/philosophers/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[package]
55
# This must be rustapp for now.
66
name = "rustapp"
7-
version = "3.7.0"
7+
version = "0.1.0"
88
edition = "2021"
99
description = "A sample hello world application in Rust"
1010
license = "Apache-2.0 or MIT"
@@ -13,11 +13,11 @@ license = "Apache-2.0 or MIT"
1313
crate-type = ["staticlib"]
1414

1515
[dependencies]
16-
zephyr = "3.7.0"
16+
zephyr = "0.1.0"
1717

1818
# Dependencies that are used by build.rs.
1919
[build-dependencies]
20-
zephyr-build = "3.7.0"
20+
zephyr-build = "0.1.0"
2121

2222
[profile.release]
2323
debug-assertions = true

tests/time/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[package]
55
# This must be rustapp for now.
66
name = "rustapp"
7-
version = "3.7.0"
7+
version = "0.1.0"
88
edition = "2021"
99
description = "Tests of time"
1010
license = "Apache-2.0 or MIT"
@@ -13,4 +13,4 @@ license = "Apache-2.0 or MIT"
1313
crate-type = ["staticlib"]
1414

1515
[dependencies]
16-
zephyr = "3.7.0"
16+
zephyr = "0.1.0"

tests/timer/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[package]
55
# This must be rustapp for now.
66
name = "rustapp"
7-
version = "3.7.0"
7+
version = "0.1.0"
88
edition = "2021"
99
description = "Tests of timeers"
1010
license = "Apache-2.0 or MIT"
@@ -15,4 +15,4 @@ crate-type = ["staticlib"]
1515
[dependencies]
1616
rand = { version = "0.8", default-features = false }
1717
rand_pcg = { version = "0.3.1", default-features = false }
18-
zephyr = "3.7.0"
18+
zephyr = "0.1.0"

zephyr-build/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "zephyr-build"
6-
version = "3.7.0"
6+
version = "0.1.0"
77
edition = "2021"
88
description = """
99
Build-time support for Rust-based applications that run on Zephyr.

zephyr-sys/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "zephyr-sys"
6-
version = "3.7.0"
6+
version = "0.1.0"
77
edition = "2021"
88
description = """
99
Zephyr low-level API bindings.
@@ -15,4 +15,4 @@ Zephyr low-level API bindings.
1515
[build-dependencies]
1616
anyhow = "1.0"
1717
bindgen = { version = "0.69.4", features = ["experimental"] }
18-
# zephyr-build = { version = "3.7.0", path = "../zephyr-build" }
18+
# zephyr-build = { version = "0.1.0", path = "../zephyr-build" }

zephyr/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
[package]
55
name = "zephyr"
6-
version = "3.7.0"
6+
version = "0.1.0"
77
edition = "2021"
88
description = """
99
Functionality for Rust-based applications that run on Zephyr.
1010
"""
1111

1212
[dependencies]
13-
zephyr-sys = { version = "3.7.0", path = "../zephyr-sys" }
13+
zephyr-sys = { version = "0.1.0", path = "../zephyr-sys" }
1414

1515
# Although paste is brought in, it is a compile-time macro, and is not linked into the application.
1616
paste = "1.0"
@@ -48,4 +48,4 @@ features = ["alloc"]
4848
# Whether these need to be vendored is an open question. They are not
4949
# used by the core Zephyr tree, but are needed by zephyr applications.
5050
[build-dependencies]
51-
zephyr-build = { version = "3.7.0", path = "../zephyr-build" }
51+
zephyr-build = { version = "0.1.0", path = "../zephyr-build" }

0 commit comments

Comments
 (0)