Repository navigation
feat: setup initial project structure #1
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2f3b79e
feat: setup initial project structure
varex83 a057771
feat: update CI to use nightly toolchain for rustfmt
varex83 05287a5
feat: update CI to use nightly toolchain for rustfmt
varex83 30c33ef
fix: fmt
varex83 d4147f3
refactor: reorganize workspace members and remove charon-types crate
varex83 cb28a3a
chore: remove unused proptest dependency from workspace
varex83 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| [package] | ||
| name = "examples" | ||
| publish = false | ||
| name = "charon-cli" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| publish.workspace = true | ||
|
|
||
| [dependencies] | ||
| # TODO(template) update the crate name | ||
| template_crate = { path = "../template_crate" } | ||
|
|
||
| [lints] | ||
| workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| //! # Charon CLI | ||
| //! | ||
| //! Command-line interface for the Charon distributed validator node. | ||
| //! This crate provides the CLI tools and commands for managing and operating | ||
| //! Charon validator nodes. | ||
|
|
||
| /// Adds two numbers together. | ||
| /// | ||
| /// # Arguments | ||
| /// | ||
| /// * `left` - The first number to add | ||
| /// * `right` - The second number to add | ||
| /// | ||
| /// # Returns | ||
| /// | ||
| /// The sum of the two numbers | ||
| /// | ||
| /// # Examples | ||
| /// | ||
| /// ``` | ||
| /// use charon_cli::add; | ||
| /// | ||
| /// let result = add(2, 2); | ||
| /// assert_eq!(result, 4); | ||
| /// ``` | ||
| pub fn add(left: u64, right: u64) -> u64 { | ||
| left.wrapping_add(right) | ||
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { | ||
| use super::*; | ||
|
|
||
| #[test] | ||
| fn it_works() { | ||
| let result = add(2, 2); | ||
| assert_eq!(result, 4); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [package] | ||
| name = "charon-cluster" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| publish.workspace = true | ||
|
|
||
| [dependencies] | ||
|
|
||
| [lints] | ||
| workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| //! # Charon Cluster | ||
| //! | ||
| //! Cluster management and coordination for Charon distributed validator nodes. | ||
| //! This crate handles the formation, management, and coordination of validator | ||
| //! clusters in the Charon network. | ||
|
|
||
| /// Adds two numbers together. | ||
| /// | ||
| /// # Arguments | ||
| /// | ||
| /// * `left` - The first number to add | ||
| /// * `right` - The second number to add | ||
| /// | ||
| /// # Returns | ||
| /// | ||
| /// The sum of the two numbers | ||
| /// | ||
| /// # Examples | ||
| /// | ||
| /// ``` | ||
| /// use charon_cluster::add; | ||
| /// | ||
| /// let result = add(2, 2); | ||
| /// assert_eq!(result, 4); | ||
| /// ``` | ||
| pub fn add(left: u64, right: u64) -> u64 { | ||
| left.wrapping_add(right) | ||
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { | ||
| use super::*; | ||
|
|
||
| #[test] | ||
| fn it_works() { | ||
| let result = add(2, 2); | ||
| assert_eq!(result, 4); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [package] | ||
| name = "charon-consensus" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| publish.workspace = true | ||
|
|
||
| [dependencies] | ||
|
|
||
| [lints] | ||
| workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| //! # Charon Consensus | ||
| //! | ||
| //! Consensus mechanisms and protocols for Charon distributed validator nodes. | ||
| //! This crate implements the consensus algorithms and protocols required for | ||
| //! coordinating validator operations across the distributed network. | ||
|
|
||
| /// Adds two numbers together. | ||
| /// | ||
| /// # Arguments | ||
| /// | ||
| /// * `left` - The first number to add | ||
| /// * `right` - The second number to add | ||
| /// | ||
| /// # Returns | ||
| /// | ||
| /// The sum of the two numbers | ||
| /// | ||
| /// # Examples | ||
| /// | ||
| /// ``` | ||
| /// use charon_consensus::add; | ||
| /// | ||
| /// let result = add(2, 2); | ||
| /// assert_eq!(result, 4); | ||
| /// ``` | ||
| pub fn add(left: u64, right: u64) -> u64 { | ||
| left.wrapping_add(right) | ||
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { | ||
| use super::*; | ||
|
|
||
| #[test] | ||
| fn it_works() { | ||
| let result = add(2, 2); | ||
| assert_eq!(result, 4); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [package] | ||
| name = "charon-core" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| publish.workspace = true | ||
|
|
||
| [dependencies] | ||
|
|
||
| [lints] | ||
| workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| //! # Charon Core | ||
| //! | ||
| //! Core functionality and utilities for the Charon distributed validator node. | ||
| //! This crate provides the fundamental building blocks, data structures, and | ||
| //! core algorithms used throughout the Charon system. | ||
|
|
||
| /// Adds two numbers together. | ||
| /// | ||
| /// # Arguments | ||
| /// | ||
| /// * `left` - The first number to add | ||
| /// * `right` - The second number to add | ||
| /// | ||
| /// # Returns | ||
| /// | ||
| /// The sum of the two numbers | ||
| /// | ||
| /// # Examples | ||
| /// | ||
| /// ``` | ||
| /// use charon_core::add; | ||
| /// | ||
| /// let result = add(2, 2); | ||
| /// assert_eq!(result, 4); | ||
| /// ``` | ||
| pub fn add(left: u64, right: u64) -> u64 { | ||
| left.wrapping_add(right) | ||
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { | ||
| use super::*; | ||
|
|
||
| #[test] | ||
| fn it_works() { | ||
| let result = add(2, 2); | ||
| assert_eq!(result, 4); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [package] | ||
| name = "charon-crypto" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| publish.workspace = true | ||
|
|
||
| [dependencies] | ||
|
|
||
| [lints] | ||
| workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| //! # Charon Crypto | ||
| //! | ||
| //! Cryptographic primitives and utilities for the Charon distributed validator | ||
| //! node. This crate provides cryptographic functions, key management, and | ||
| //! security operations required for distributed validator operations. | ||
|
|
||
| /// Adds two numbers together. | ||
| /// | ||
| /// # Arguments | ||
| /// | ||
| /// * `left` - The first number to add | ||
| /// * `right` - The second number to add | ||
| /// | ||
| /// # Returns | ||
| /// | ||
| /// The sum of the two numbers | ||
| /// | ||
| /// # Examples | ||
| /// | ||
| /// ``` | ||
| /// use charon_crypto::add; | ||
| /// | ||
| /// let result = add(2, 2); | ||
| /// assert_eq!(result, 4); | ||
| /// ``` | ||
| pub fn add(left: u64, right: u64) -> u64 { | ||
| left.wrapping_add(right) | ||
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { | ||
| use super::*; | ||
|
|
||
| #[test] | ||
| fn it_works() { | ||
| let result = add(2, 2); | ||
| assert_eq!(result, 4); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [package] | ||
| name = "charon-db" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| publish.workspace = true | ||
|
|
||
| [dependencies] | ||
|
|
||
| [lints] | ||
| workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| //! # Charon Database | ||
| //! | ||
| //! Database layer and persistence for the Charon distributed validator node. | ||
| //! This crate provides database abstractions, storage backends, and data | ||
| //! persistence mechanisms for validator state and operations. | ||
|
|
||
| /// Adds two numbers together. | ||
| /// | ||
| /// # Arguments | ||
| /// | ||
| /// * `left` - The first number to add | ||
| /// * `right` - The second number to add | ||
| /// | ||
| /// # Returns | ||
| /// | ||
| /// The sum of the two numbers | ||
| /// | ||
| /// # Examples | ||
| /// | ||
| /// ``` | ||
| /// use charon_db::add; | ||
| /// | ||
| /// let result = add(2, 2); | ||
| /// assert_eq!(result, 4); | ||
| /// ``` | ||
| pub fn add(left: u64, right: u64) -> u64 { | ||
| left.wrapping_add(right) | ||
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { | ||
| use super::*; | ||
|
|
||
| #[test] | ||
| fn it_works() { | ||
| let result = add(2, 2); | ||
| assert_eq!(result, 4); | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we need to remove this dependency.