Skip to content

Commit

Permalink
Merge pull request #2 from FL03/v0.0.1
Browse files Browse the repository at this point in the history
V0.0.1
  • Loading branch information
FL03 authored Jul 15, 2024
2 parents 8c1bd09 + a0cf697 commit 32a6602
Show file tree
Hide file tree
Showing 71 changed files with 3,751 additions and 59 deletions.
10 changes: 9 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ updates:
schedule:
interval: weekly
- package-ecosystem: cargo
directory: /triad
directory: /core
schedule:
interval: weekly
- package-ecosystem: cargo
directory: /neo
schedule:
interval: weekly
- package-ecosystem: cargo
directory: /rstmt
schedule:
interval: weekly
26 changes: 25 additions & 1 deletion .github/workflows/crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ concurrency:

env:
BASENAME: ${{ github.event.repository.name }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_TERM_COLOR: always

on:
Expand All @@ -16,9 +17,32 @@ on:
workflow_dispatch:

jobs:
core:
name: Publish (${{ github.event.repository.name }})
runs-on: ubuntu-latest
strategy:
matrix:
features: [ core ]
steps:
- uses: actions/checkout@v4
- name: Publish (${{ matrix.features }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}-${{ matrix.features }}
features:
name: Publish (${{ github.event.repository.name }})
needs: [ core ]
runs-on: ubuntu-latest
strategy:
matrix:
features: [ neo ]
steps:
- uses: actions/checkout@v4
- name: Publish (${{ matrix.features }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}-${{ matrix.features }}
publish:
name: Publish (${{ github.event.repository.name }})
needs: [ features ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo publish --all-features -v -p ${{ github.event.repository.name }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish (${{ github.event.repository.name }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Artifacts

**/.artifacts/data/
**/.artifacts/data/*
**/.artifacts/examples/*
**/.docker/data/


Expand Down
41 changes: 25 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
[workspace.package]
authors = ["Joe McCain III <jo3mccain@icloud.com>",]
categories = [ ]
description = "This project focuses on providing concrete abstractions of musical objects discussed within the neo-Riemannian theory."
edition = "2021"
homepage = "https://github.com/username/triad/wiki"
keywords = [ ]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/username/triad.git"
version = "0.0.0"

[workspace.dependencies]

[workspace]
default-members = [
"triad"
"rstmt"
]

exclude = [

]

members = [
"triad",
"core",
"neo",
"rstmt",
]

resolver = "2"

[workspace.dependencies]
anyhow = "1"
lazy_static = "1"
paste = "1"
serde_json = "1"
smart-default = "0.7"
strum = { features = ["derive"], version = "0.26" }
thiserror = "1"

[workspace.package]
authors = ["Joe McCain III <jo3mccain@icloud.com>",]
categories = [ ]
description = "This project focuses on providing concrete abstractions of musical objects discussed within the neo-Riemannian theory."
edition = "2021"
homepage = "https://github.com/FL03/triad/wiki"
keywords = [ "music" ]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/FL03/triad.git"
version = "0.0.1"

[profile.dev]
opt-level = 0
debug = true
Expand Down
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# triad
# rstmt

[![crates.io](https://img.shields.io/crates/v/concision.svg)](https://crates.io/crates/triad)
[![docs.rs](https://docs.rs/concision/badge.svg)](https://docs.rs/triad)
[![crates.io](https://img.shields.io/crates/v/rstmt.svg)](https://crates.io/crates/rstmt)
[![docs.rs](https://docs.rs/rstmt/badge.svg)](https://docs.rs/rstmt)

[![clippy](https://github.com/FL03/triad/actions/workflows/clippy.yml/badge.svg)](https://github.com/FL03/triad/actions/workflows/clippy.yml)
[![rust](https://github.com/FL03/triad/actions/workflows/rust.yml/badge.svg)](https://github.com/FL03/triad/actions/workflows/rust.yml)
[![clippy](https://github.com/FL03/rstmt/actions/workflows/clippy.yml/badge.svg)](https://github.com/FL03/rstmt/actions/workflows/clippy.yml)
[![rust](https://github.com/FL03/rstmt/actions/workflows/rust.yml/badge.svg)](https://github.com/FL03/rstmt/actions/workflows/rust.yml)

***

Expand All @@ -14,7 +14,7 @@ This project focuses on providing concrete abstractions of musical objects discu

## Features


- [] The Neo-Riemannian Theory

## Getting Started

Expand All @@ -23,7 +23,7 @@ This project focuses on providing concrete abstractions of musical objects discu
Start by cloning the repository

```bash
git clone https://github.com/FL03/triad.git
git clone https://github.com/FL03/rstmt.git
cd triad
```

Expand All @@ -33,18 +33,11 @@ cargo build --features full -r --workspace

## Usage

### Example: Linear Model (biased)
### Example

```rust
extern crate triad;

fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt::init();
tracing::info!("Starting linear model example");

extern crate rstmt;

Ok(())
}
```

## Contributing
Expand Down
34 changes: 25 additions & 9 deletions triad/Cargo.toml → core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
name = "triad"
name = "rstmt-core"
readme.workspace = true
repository.workspace = true
version.workspace = true
Expand All @@ -30,24 +30,22 @@ alloc = [
]

rand = [
"num/rand"
"num/rand",
]

serde = [
"dep:serde"
"dep:serde",
]

# ********* [FF] Environments *********
std = [
"alloc",
"num/std",
"regex/std",
"serde?/std",
"strum/std",
]

wasm = []

wasi = []

[lib]
bench = true
crate-type = ["cdylib", "rlib"]
Expand All @@ -56,19 +54,37 @@ test = true

[build-dependencies]

[dev-dependencies]
lazy_static = "1"
[dependencies]
lazy_static.workspace = true
paste.workspace = true
smart-default.workspace = true

[dependencies.num]
default-features = false
version = "0.4"

[dependencies.regex]
default-features = false
features = [
"perf",
"unicode",
]
version = "1"

[dependencies.serde]
default-features = false
features = ["derive"]
optional = true
version = "1"

[dependencies.strum]
default-features = false
features = ["derive"]
version = "0.26"

[dev-dependencies]
lazy_static.workspace = true

[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
Expand Down
File renamed without changes.
Loading

0 comments on commit 32a6602

Please sign in to comment.