Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/bors.toml

This file was deleted.

150 changes: 150 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
on:
push:
branches: [ main ]
pull_request:

name: Build

jobs:
# Build the workspace for a target architecture
build:
runs-on: ubuntu-24.04
strategy:
matrix:
rust: [stable, 1.59]
target:
- armebv7r-none-eabi
- armebv7r-none-eabihf
- armv7r-none-eabi
- armv7r-none-eabihf
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust
run: |
rustup install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
rustup target add ${{ matrix.target }}
- name: Build
run: |
cargo build --target ${{ matrix.target }}
cargo build --target ${{ matrix.target }} --no-default-features
cargo build --target ${{ matrix.target }} --all-features

# Build the workspace for the target architecture but using nightly to compile libcore
build-tier3:
runs-on: ubuntu-24.04
strategy:
matrix:
target:
- armebv7r-none-eabi
- armebv7r-none-eabihf
- armv7r-none-eabi
- armv7r-none-eabihf
- armv8r-none-eabihf
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust
run: |
rustup install nightly
rustup default nightly
rustup component add rust-src --toolchain nightly
- name: Build
run: |
cargo build --target ${{ matrix.target }} -Zbuild-std=core
cargo build --target ${{ matrix.target }} -Zbuild-std=core --no-default-features
cargo build --target ${{ matrix.target }} -Zbuild-std=core --all-features

# Gather all the above build jobs together for the purposes of getting an overall pass-fail
build-all:
runs-on: ubuntu-24.04
needs: [build, build-tier3]
steps:
- run: /bin/true

# Build the docs for the workspace
docs:
runs-on: ubuntu-24.04
strategy:
matrix:
rust: [stable, 1.59]
target:
- armebv7r-none-eabi
- armebv7r-none-eabihf
- armv7r-none-eabi
- armv7r-none-eabihf
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust
run: |
rustup install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
rustup target add ${{ matrix.target }}
- name: Build docs
run: |
cargo doc --target ${{ matrix.target }}
cargo doc --target ${{ matrix.target }} --no-default-features
cargo doc --target ${{ matrix.target }} --all-features

# Format the workspace
fmt:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust
run: |
rustup install stable
rustup default stable
- name: Format
run: |
cargo fmt --check

# Run clippy on the workpace
clippy:
runs-on: ubuntu-24.04
strategy:
matrix:
rust: [stable, 1.59]
target:
- armebv7r-none-eabi
- armebv7r-none-eabihf
- armv7r-none-eabi
- armv7r-none-eabihf
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust
run: |
rustup install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
rustup target add ${{ matrix.target }}
rustup component add clippy
- name: Clippy
run: |
cargo clippy --target ${{ matrix.target }}
cargo clippy --target ${{ matrix.target }} --no-default-features
cargo clippy --target ${{ matrix.target }} --all-features

# Run the unit tests
unit-test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust
run: |
rustup install stable
rustup default stable
- name: Run cargo test
run: |
cargo test --workspace --exclude panic-dcc

# Gather all the above xxx-all jobs together for the purposes of getting an overall pass-fail
all:
runs-on: ubuntu-24.04
needs: [build-all, docs, fmt, unit-test] # not gating on clippy
steps:
- run: /bin/true
78 changes: 0 additions & 78 deletions .travis.yml

This file was deleted.

24 changes: 5 additions & 19 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
[package]
authors = [
"The Cortex-R Team <cortex-r@teams.rust-embedded.org>",
"Jorge Aparicio <jorge@japaric.io>",
]
categories = ["embedded", "hardware-support", "no-std"]
description = "Debug Communication Channel (DCC) API"
edition = "2018"
keywords = ["ARM", "DCC"]
license = "MIT OR Apache-2.0"
name = "arm-dcc"
repository = "https://github.com/rust-embedded/arm-dcc"
rust-version = "1.59"
version = "0.1.0"

[features]
nop = []

[workspace]
members = ["panic"]
members = [
"panic-dcc",
"arm-dcc",
]
resolver = "2"
1 change: 1 addition & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (c) 2018-2019 Jorge Aparicio
Copyright (c) Rust Embedded Devices Working Group developers

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

This project is developed and maintained by the [Cortex-R team][team].

# Minimum Supported Rust Version (MSRV)
## Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.31.0 and up. It *might*
This crate is guaranteed to compile on stable Rust 1.59 and up. It *might*
compile with older versions but that may change in any new patch release.

## License
Expand Down
17 changes: 17 additions & 0 deletions arm-dcc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
authors = [
"The Cortex-R Team <cortex-r@teams.rust-embedded.org>",
"Jorge Aparicio <jorge@japaric.io>",
]
categories = ["embedded", "hardware-support", "no-std"]
description = "Debug Communication Channel (DCC) API"
edition = "2018"
keywords = ["ARM", "DCC"]
license = "MIT OR Apache-2.0"
name = "arm-dcc"
repository = "https://github.com/rust-embedded/arm-dcc"
rust-version = "1.59"
version = "0.1.0"

[features]
nop = []
1 change: 1 addition & 0 deletions src/lib.rs → arm-dcc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ pub fn write_str(string: &str) {
write_all(string.as_bytes())
}

#[cfg(target_arch = "arm")]
core::arch::global_asm!(
r#"
// Routine for putting data in the DCC register
Expand Down
Binary file removed bin/armebv7r-none-eabi.a
Binary file not shown.
Binary file removed bin/armebv7r-none-eabihf.a
Binary file not shown.
Binary file removed bin/armv7r-none-eabi.a
Binary file not shown.
Binary file removed bin/armv7r-none-eabihf.a
Binary file not shown.
2 changes: 1 addition & 1 deletion panic/Cargo.toml → panic-dcc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ rust-version = "1.59"
version = "0.1.0"

[dependencies]
arm-dcc = { path = "..", version = "0.1.0" }
arm-dcc = { path = "../arm-dcc", version = "0.1.0" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.