Skip to content

Commit 8071b55

Browse files
Merge pull request #150 from rust-embedded/remove-fcsr
Transition to cargo workspace
2 parents 4ab67d6 + c92affa commit 8071b55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+44
-29
lines changed

.github/workflows/changelog.yaml

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check CHANGELOG.md
1+
name: Changelog check
22

33
on:
44
merge_group:
@@ -12,9 +12,18 @@ jobs:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
1414

15-
- name: Check for CHANGELOG.md
15+
- name: Check which component is modified
16+
uses: dorny/paths-filter@v2
17+
id: changes
18+
with:
19+
filters: |
20+
riscv:
21+
- 'riscv/**'
22+
23+
- name: Check for CHANGELOG.md (riscv)
24+
if: steps.changes.outputs.riscv == 'true'
1625
uses: dangoslen/changelog-enforcer@v3
1726
with:
27+
changeLogPath: ./riscv/CHANGELOG.md
1828
skipLabels: 'skip changelog'
19-
missingUpdateErrorMessage: 'Please add a changelog entry in the CHANGELOG.md file.'
20-
29+
missingUpdateErrorMessage: 'Please add a changelog entry in the riscv/CHANGELOG.md file.'

Cargo.toml

+4-25
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
1-
[package]
2-
name = "riscv"
3-
version = "0.10.1"
4-
edition = "2021"
5-
rust-version = "1.59"
6-
repository = "https://github.com/rust-embedded/riscv"
7-
authors = ["The RISC-V Team <[email protected]>"]
8-
categories = ["embedded", "hardware-support", "no-std"]
9-
description = "Low level access to RISC-V processors"
10-
keywords = ["riscv", "register", "peripheral"]
11-
license = "ISC"
12-
13-
[package.metadata.docs.rs]
14-
all-features = true
15-
default-target = "riscv64imac-unknown-none-elf"
16-
targets = [
17-
"riscv32i-unknown-none-elf", "riscv32imc-unknown-none-elf", "riscv32imac-unknown-none-elf",
18-
"riscv64imac-unknown-none-elf", "riscv64gc-unknown-none-elf",
1+
[workspace]
2+
resolver = "2"
3+
members = [
4+
"riscv",
195
]
20-
21-
[features]
22-
critical-section-single-hart = ["critical-section/restore-state-bool"]
23-
24-
[dependencies]
25-
critical-section = "1.1.2"
26-
embedded-hal = "1.0.0-rc.1"

CHANGELOG.md renamed to riscv/CHANGELOG.md

+1

riscv/Cargo.toml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[package]
2+
name = "riscv"
3+
version = "0.10.1"
4+
edition = "2021"
5+
rust-version = "1.59"
6+
repository = "https://github.com/rust-embedded/riscv"
7+
authors = ["The RISC-V Team <[email protected]>"]
8+
categories = ["embedded", "hardware-support", "no-std"]
9+
description = "Low level access to RISC-V processors"
10+
keywords = ["riscv", "register", "peripheral"]
11+
license = "ISC"
12+
13+
[package.metadata.docs.rs]
14+
all-features = true
15+
default-target = "riscv64imac-unknown-none-elf"
16+
targets = [
17+
"riscv32i-unknown-none-elf", "riscv32imc-unknown-none-elf", "riscv32imac-unknown-none-elf",
18+
"riscv64imac-unknown-none-elf", "riscv64gc-unknown-none-elf",
19+
]
20+
21+
[features]
22+
critical-section-single-hart = ["critical-section/restore-state-bool"]
23+
24+
[dependencies]
25+
critical-section = "1.1.2"
26+
embedded-hal = "1.0.0-rc.1"

build.rs renamed to riscv/build.rs

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)