-
Notifications
You must be signed in to change notification settings - Fork 22
/
Cargo.toml
73 lines (60 loc) · 1.85 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[package]
name = "bxcan"
version = "0.8.0"
authors = [
"Jonas Schievink <[email protected]>",
"Timo Kröger <[email protected]>",
]
edition = "2021"
description = "STM32 bxCAN peripheral driver"
documentation = "https://docs.rs/bxcan/"
repository = "https://github.com/stm32-rs/bxcan.git"
keywords = ["can", "hal", "bus"]
categories = ["no-std", "embedded"]
readme = "README.md"
license = "MIT OR Apache-2.0"
[workspace]
members = ["testsuite"]
[badges]
maintenance = { status = "actively-developed" }
[dependencies]
bitflags = "1.2.1"
vcell = "0.1.2"
nb = "1.0.0"
[dependencies.embedded-can-04]
version = "0.4.1"
package = "embedded-can"
[dependencies.defmt]
optional = true
version = ">=0.2.3,<0.4.0"
[features]
unstable-defmt = ["defmt"]
[profile.test]
opt-level = "s"
# FIXME: Turning LTO off makes the testsuite executables 2.5x larger.
# Turning it on makes `cargo test` on the host take a bit long to build.
lto = true
# cargo-release configuration
[package.metadata.release]
tag-message = "{{version}}"
pre-release-commit-message = "Release {{version}}"
# Change the changelog's `Unreleased` section to refer to this release and
# prepend a new `Unreleased` section
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "## Unreleased\n"
replace = """
## Unreleased
No changes.
## [{{version}} - {{date}}](https://github.com/stm32-rs/bxcan/releases/tag/v{{version}})
"""
# Bump the version inside the example manifest in `README.md`
[[package.metadata.release.pre-release-replacements]]
file = "README.md"
search = 'bxcan = "[a-z0-9\\.-]+"'
replace = 'bxcan = "{{version}}"'
# Bump the version referenced by the `html_root_url` attribute in `lib.rs`
[[package.metadata.release.pre-release-replacements]]
file = "src/lib.rs"
search = "https://docs.rs/bxcan/[a-z0-9\\.-]+"
replace = "https://docs.rs/bxcan/{{version}}"