-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into flub/relay-send-channel-1
- Loading branch information
Showing
71 changed files
with
882 additions
and
671 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ env: | |
RUST_BACKTRACE: 1 | ||
RUSTFLAGS: -Dwarnings | ||
RUSTDOCFLAGS: -Dwarnings | ||
MSRV: "1.76" | ||
MSRV: "1.81" | ||
SCCACHE_CACHE_SIZE: "10G" | ||
IROH_FORCE_STAGING_RELAYS: "1" | ||
|
||
|
@@ -221,7 +221,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-05-02 | ||
toolchain: nightly-2024-11-30 | ||
- name: Install sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
|
This file contains 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 |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-05-02 | ||
toolchain: nightly-2024-11-30 | ||
- name: Install sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
|
@@ -68,6 +68,6 @@ jobs: | |
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
body: | | ||
Documentation for this PR has been generated and is available at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.PREVIEW_PATH }}/iroh/ | ||
Last updated: ${{ env.TIMESTAMP }} | ||
edit-mode: replace |
This file contains 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 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 |
---|---|---|
|
@@ -8,15 +8,15 @@ on: | |
concurrency: | ||
group: relay-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
RUSTFLAGS: -Dwarnings | ||
RUSTDOCFLAGS: -Dwarnings | ||
MSRV: "1.76" | ||
MSRV: "1.81" | ||
SCCACHE_CACHE_SIZE: "10G" | ||
IROH_FORCE_STAGING_RELAYS: "1" | ||
|
||
jobs: | ||
build_relay_server: | ||
runs-on: [self-hosted, linux, X64] | ||
|
@@ -33,11 +33,11 @@ jobs: | |
uses: dtolnay/rust-toolchain@stable | ||
- name: Install sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: build release | ||
run: | | ||
cargo build --release --all-features --bin iroh-relay | ||
- name: Setup awscli on linux | ||
run: | | ||
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | ||
|
@@ -48,16 +48,16 @@ jobs: | |
echo "AWS_ACCESS_KEY_ID=${{secrets.S3_ACCESS_KEY_ID}}" >> $GITHUB_ENV | ||
echo "AWS_SECRET_ACCESS_KEY=${{secrets.S3_ACCESS_KEY}}" >> $GITHUB_ENV | ||
echo "AWS_DEFAULT_REGION=us-west-2" >> $GITHUB_ENV | ||
- name: push release | ||
run: | | ||
aws s3 cp ./target/release/iroh-relay s3://vorc/iroh-relay-linux-amd64-${GITHUB_SHA::7} --no-progress | ||
- name: Set iroh-relay tag | ||
id: set_tag | ||
run: | | ||
echo ::set-output name=tag::${GITHUB_SHA::7} | ||
deploy_iroh-relay: | ||
runs-on: ubuntu-latest | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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,23 +1,30 @@ | ||
//! Base types and utilities for Iroh | ||
#![cfg_attr(iroh_docsrs, feature(doc_cfg))] | ||
#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))] | ||
|
||
// TODO: remove | ||
#[cfg(feature = "base32")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "base32")))] | ||
pub mod base32; | ||
|
||
// TODO: move to own crate | ||
#[cfg(feature = "ticket")] | ||
pub mod ticket; | ||
|
||
#[cfg(feature = "hash")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "hash")))] | ||
pub mod hash; | ||
mod hash; | ||
#[cfg(feature = "key")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "key")))] | ||
pub mod key; | ||
mod key; | ||
#[cfg(feature = "key")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "key")))] | ||
pub mod node_addr; | ||
mod node_addr; | ||
#[cfg(feature = "relay")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "relay")))] | ||
pub mod relay_map; | ||
#[cfg(any(feature = "relay", feature = "key"))] | ||
mod relay_url; | ||
#[cfg(feature = "base32")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "base32")))] | ||
pub mod ticket; | ||
|
||
#[cfg(feature = "hash")] | ||
pub use self::hash::{BlobFormat, Hash, HashAndFormat}; | ||
#[cfg(feature = "key")] | ||
pub use self::key::{ | ||
KeyParsingError, NodeId, PublicKey, SecretKey, SharedSecret, Signature, PUBLIC_KEY_LENGTH, | ||
}; | ||
#[cfg(feature = "key")] | ||
pub use self::node_addr::NodeAddr; | ||
#[cfg(feature = "relay")] | ||
pub use self::relay_url::RelayUrl; |
Oops, something went wrong.