Skip to content

Commit

Permalink
Merge pull request #2 from Brad-Edwards:1-set-up-known-crates-and-res…
Browse files Browse the repository at this point in the history
…erve-names

1-set-up-known-crates-and-reserve-names
  • Loading branch information
Brad-Edwards authored Dec 24, 2024
2 parents 800b144 + c48aa9e commit d81f0d0
Show file tree
Hide file tree
Showing 87 changed files with 1,623 additions and 7 deletions.
55 changes: 48 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,58 @@
[workspace]
members = [
"shared/blocks-core",
"shared/blocks-primitives",
"shared/blocks-utils",
"shared/blocks-tests"
"crates/shared/blocks-core",
"crates/shared/blocks-utils",
"crates/shared/blocks-tests",
# Computer Science
"crates/cs/blocks-cs-core",
"crates/cs/blocks-cs-sort",
"crates/cs/blocks-cs-search",
"crates/cs/blocks-cs-string",
"crates/cs/blocks-cs-tree",
"crates/cs/blocks-cs-dp",
"crates/cs/blocks-cs-dist",
"crates/cs/blocks-cs-mem",
"crates/cs/blocks-cs-txn",
"crates/cs/blocks-cs-sched",
"crates/cs/blocks-cs-hpc",
"crates/cs/blocks-cs-hash",
"crates/cs/blocks-cs-sec",
"crates/cs/blocks-cs-comp",
"crates/cs/blocks-cs-ecc",
"crates/cs/blocks-cs-stream",
"crates/cs/blocks-cs-quantum",
"crates/cs/blocks-cs-graph",
# Mathematics
"crates/math/blocks-math-core",
"crates/math/blocks-math-num",
"crates/math/blocks-math-geometry",
"crates/math/blocks-math-combo",
"crates/math/blocks-math-optim",
"crates/math/blocks-math-ilp",
"crates/math/blocks-math-sat",
# Statistics
"crates/stats/blocks-stats-core",
"crates/stats/blocks-stats-bayesian",
"crates/stats/blocks-stats-rand",
"crates/stats/blocks-stats-signal",
"crates/stats/blocks-stats-prob",
"crates/stats/blocks-stats-approx",
# Machine Learning
"crates/ml/blocks-ml-core",
"crates/ml/blocks-ml-classic",
"crates/ml/blocks-ml-deep",
"crates/ml/blocks-ml-rl",
"crates/ml/blocks-ml-cv",
"crates/ml/blocks-ml-nlp",
"crates/ml/blocks-ml-game-search"
]

[workspace.package]
version = "0.1.0"
edition = "2021"
authors = []
license = "MIT"
authors = ["Brad Edwards <[email protected]>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/atomiklabs/blocks"
resolver = "2"

[workspace.dependencies]
# Common dependencies will be added here as needed
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-comp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-comp"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-comp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-core"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-dist/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-dist"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-dist/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-dp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-dp"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-dp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-ecc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-ecc"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-ecc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-graph/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-graph"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-graph/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-hash/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-hash"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-hash/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-hpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-hpc"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-hpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-mem/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-mem"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-mem/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-quantum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-quantum"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-quantum/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-sched/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-sched"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-sched/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-search/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-search"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-search/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
9 changes: 9 additions & 0 deletions crates/cs/blocks-cs-sec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "blocks-cs-sec"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions crates/cs/blocks-cs-sec/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
Loading

0 comments on commit d81f0d0

Please sign in to comment.