Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Actions #44

Merged
merged 11 commits into from
Oct 27, 2019
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
12 changes: 12 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Audit
on:
schedule:
- cron: '0 0 * * *'
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GH_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: [push, pull_request]
name: Clippy
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install nightly toolchain with clippy available
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on: [push]

name: Code Coverage
name: Coverage

jobs:
test:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: [push, pull_request]
name: Format
jobs:
rustfmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install nightly toolchain with rustfmt available
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
9 changes: 0 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,9 @@ panic-semihosting = "0.5.3"
panic-itm = "0.4.1"
cortex-m-rtfm = "0.4.3"
cortex-m-semihosting = "0.3.5"
enc28j60 = "0.2.1"
heapless = "0.5.1"
libm = "0.1.4"
mfrc522 = "0.2.0"
as-slice = "0.2.0"
serde_derive = "1.0.101"
serde-json-core = "0.0.1"
mpu9250 = "0.20.0"

[dev-dependencies.byteorder]
default-features = false
Expand All @@ -91,7 +86,3 @@ version = "1.5.3"
git = "https://github.com/japaric/jnet"
rev = "df96b408049ca952ad7844d6552e87cf8fc18d2a"

[dev-dependencies.serde]
default-features = false
version = "1.0.101"

2 changes: 0 additions & 2 deletions src/can.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

pub trait CanExt {
fn constrain(self) -> Can;
}
Expand All @@ -13,7 +12,6 @@ pub struct Can {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/ccu40.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait Ccu40Ext {
fn constrain(self) -> Ccu40;
}
Expand All @@ -14,7 +12,6 @@ pub struct Ccu40 {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/ccu80.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait Ccu80Ext {
fn constrain(self) -> Ccu80;
}
Expand All @@ -14,7 +12,6 @@ pub struct Ccu80 {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/dac.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait DacExt {
fn constrain(self) -> Dac;
}
Expand All @@ -14,7 +12,6 @@ pub struct Dac {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/dlr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait DlrExt {
fn constrain(self) -> Dlr;
}
Expand All @@ -14,7 +12,6 @@ pub struct Dlr {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/eru.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait EruExt {
fn constrain(self) -> Eru;
}
Expand All @@ -14,7 +12,6 @@ pub struct Eru {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/fce.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait FceExt {
fn constrain(self) -> Fce;
}
Expand All @@ -14,7 +12,6 @@ pub struct Fce {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/flash.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait FlashExt {
fn constrain(self) -> Flash;
}
Expand All @@ -14,7 +12,6 @@ pub struct Flash {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/gpdma.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait GpdmaExt {
fn constrain(self) -> Gpdma;
}
Expand All @@ -14,7 +12,6 @@ pub struct Gpdma {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/hrpwm.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait HrpwmExt {
fn constrain(self) -> Hrpwm;
}
Expand All @@ -14,7 +12,6 @@ pub struct Hrpwm {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/ledts.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait LedtsExt {
fn constrain(self) -> Ledts;
}
Expand All @@ -14,7 +12,6 @@ pub struct Ledts {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ pub mod vadc;
#[cfg(feature = "device-selected")]
pub mod wdt;


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/pba.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait PbaExt {
fn constrain(self) -> Pba;
}
Expand All @@ -14,7 +12,6 @@ pub struct Pba {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/pmu.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait PmuExt {
fn constrain(self) -> Pmu;
}
Expand All @@ -14,7 +12,6 @@ pub struct Pmu {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/port.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait PortExt {
fn constrain(self) -> Port;
}
Expand All @@ -14,7 +12,6 @@ pub struct Port {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/posif.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait PosifExt {
fn constrain(self) -> Posif;
}
Expand All @@ -14,7 +12,6 @@ pub struct Posif {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/ppb.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait PpbExt {
fn constrain(self) -> Ppb;
}
Expand All @@ -14,7 +12,6 @@ pub struct Ppb {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/pref.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait PrefExt {
fn constrain(self) -> Pref;
}
Expand All @@ -14,7 +12,6 @@ pub struct Pref {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/usb.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait UsbExt {
fn constrain(self) -> Usb;
}
Expand All @@ -14,7 +12,6 @@ pub struct Usb {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/usic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait UsicExt {
fn constrain(self) -> Usic;
}
Expand All @@ -14,7 +12,6 @@ pub struct Usic {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/vadc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait VadcExt {
fn constrain(self) -> Vadc;
}
Expand All @@ -14,7 +12,6 @@ pub struct Vadc {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down
3 changes: 0 additions & 3 deletions src/wdt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


pub trait WdtExt {
fn constrain(self) -> Wdt;
}
Expand All @@ -14,7 +12,6 @@ pub struct Wdt {}

// IMPLEMENT PERIPHERAL AFTER THIS LINE


#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
Expand Down