Skip to content

Commit

Permalink
feat: v1.0.0 release, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnimus committed Jan 7, 2024
1 parent 4b37714 commit 80e92c5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 59 deletions.
53 changes: 5 additions & 48 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"strategy": {
"matrix": {
"os": [
"macos-11",
"macos-latest",
"windows-latest",
"ubuntu-latest"
]
Expand All @@ -20,7 +20,7 @@
"steps": [
{
"name": "Setup | Checkout",
"uses": "actions/checkout@v2"
"uses": "actions/checkout@v3"
},
{
"name": "Setup | Install Dependencies",
Expand All @@ -32,58 +32,15 @@
},
{
"name": "Setup | Rust",
"uses": "actions-rs/toolchain@v1.0.7",
"with": {
"toolchain": "stable",
"override": true,
"profile": "minimal",
"components": "clippy"
}
"run": "rustup update && rustup component add clippy"
},
{
"name": "Test | Clippy",
"uses": "actions-rs/cargo@v1.0.3",
"with": {
"command": "clippy",
"args": "--features=midir"
}
"run": "cargo clippy --features midir"
},
{
"name": "Test | Test",
"uses": "actions-rs/cargo@v1.0.3",
"with": {
"command": "test",
"args": "--features=midir"
}
}
]
},
"publish": {
"name": "Publish to crates.io",
"if": "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')",
"needs": "tests",
"runs-on": "ubuntu-latest",
"steps": [
{
"name": "Setup | Checkout",
"uses": "actions/checkout@v2.3.4"
},
{
"name": "Setup | Rust",
"uses": "actions-rs/toolchain@v1.0.7",
"with": {
"toolchain": "stable",
"override": true,
"profile": "minimal"
}
},
{
"name": "Deploy | Publish",
"uses": "actions-rs/cargo@v1.0.3",
"with": {
"command": "publish",
"args": "--token ${{ secrets.CRATES_IO_TOKEN }}"
}
"run": "cargo test --features midir"
}
]
}
Expand Down
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "nodi"
description = "A library for playback and abstraction of MIDI files."
version = "0.19.2"
version = "1.0.0"
edition = "2021"
license = "MIT"
authors = [ "Taylan Gökkaya <insomnimus@protonmail.com>" ]
Expand All @@ -15,20 +15,20 @@ features = [ "midir", "hybrid-sleep"]
default-target = "x86_64-unknown-linux-gnu"
targets = []

[features]
default = [ "hybrid-sleep" ]
hybrid-sleep = []
midir-jack = ["midir/jack"]
midir-winrt = ["midir/winrt"]

[[example]]
name = "play_midi"
required-features = [ "midir" ]

[dependencies]
midir = { version = "0.8.0", optional = true }
midly = "0.5.2"
midir = { version = "0.9.1", optional = true }
midly = "0.5.3"

[dev-dependencies]
clap = "=3.1.18"
midir = "0.8.0"

[features]
default = [ "hybrid-sleep" ]
hybrid-sleep = []
midir-jack = ["midir/jack"]
midir-winrt = ["midir/winrt"]
midir = "0.9.1"
2 changes: 1 addition & 1 deletion src/sheet/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Iterator for Bars {
}

let len_32nd = self.tpb / 8.0;
let chunk_len = (self.time_sig.bar_32s() * len_32nd as f32) as usize;
let chunk_len = (self.time_sig.bar_32s() * len_32nd) as usize;
let mut temp = Vec::with_capacity(chunk_len);
temp.push(first);

Expand Down

0 comments on commit 80e92c5

Please sign in to comment.