This repository was archived by the owner on Apr 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Merged
linkd #779
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7958069
librad: Implement Display for Network
xla 624f29e
librad: Replace RadHome's new with default
xla 4ef6f64
rad-clib: Avoid unwrap with transparent error
xla b9eeadd
node: Add library to wire up a running p2p node
xla 1e0dd58
linkd: Add binary
xla 05164e4
e2e: Replace ephemeral peer with linkd
xla 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[workspace] | ||
members = [ | ||
"linkd" | ||
] | ||
|
||
[patch.crates-io.thrussh-encoding] | ||
git = "https://github.com/FintanH/thrussh.git" | ||
branch = "generic-agent" |
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 @@ | ||
��:�5-B|��d��kGk���H2�(�ܞ��I |
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,15 @@ | ||
[package] | ||
name = "linkd" | ||
version = "0.1.0" | ||
edition = "2018" | ||
license = "GPL-3.0-or-later" | ||
authors = [ | ||
"xla <[email protected]>", | ||
] | ||
|
||
[dependencies] | ||
tokio = { version = "1.10", default-features = false, features = [ "macros", "process", "rt-multi-thread" ] } | ||
|
||
[dependencies.node-lib] | ||
path = "../../node-lib" | ||
version = "0.1.0" |
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,13 @@ | ||
// Copyright © 2021 The Radicle Link Contributors | ||
// | ||
// This file is part of radicle-link, distributed under the GPLv3 with Radicle | ||
// Linking Exception. For full terms see the included LICENSE file. | ||
|
||
use node_lib::node::run; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
if let Err(e) = run().await { | ||
eprintln!("linkd failed: {:?}", e); | ||
} | ||
} |
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,2 +1,2 @@ | ||
bootstrap: cargo run --bin ephemeral-peer -- --secret-key hIfobTmxKMemyXPOC8EmUNdufwi2MsKucEB9EikOyDE --listen 127.0.0.1:54321 | ||
peer: sleep 5; cargo run --bin ephemeral-peer -- --bootstrap [email protected]:54321 | ||
bootstrap: cd ../bins && echo -n "hIfobTmxKMemyXPOC8EmUNdufwi2MsKucEB9EikOyDE" | cargo run -p linkd -- --signer key --key-format base64 --protocol-listen 127.0.0.1:54321 --tmp-root | ||
peer: sleep 5; cd ../bins && cargo run -p linkd -- --signer key --key-source ephemeral --tmp-root --protocol-listen localhost --bootstrap [email protected]:54321 |
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 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 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,40 @@ | ||
[package] | ||
name = "node-lib" | ||
version = "0.1.0" | ||
edition = "2018" | ||
license = "GPL-3.0-or-later" | ||
authors = [ | ||
"xla <[email protected]>", | ||
] | ||
|
||
[lib] | ||
doctest = true | ||
test = false | ||
|
||
[dependencies] | ||
anyhow = "1.0" | ||
base64 = "0.13" | ||
env_logger = "0.9" | ||
futures = "0.3" | ||
lazy_static = "1.4" | ||
log = "0.4" | ||
nix = "0.22" | ||
structopt = { version = "0.3", default-features = false } | ||
thiserror = "1.0" | ||
tempfile = "3.2" | ||
tokio = { version = "1.10", default-features = false, features = [ "fs", "io-std", "macros", "process", "rt-multi-thread", "signal" ] } | ||
tracing = { version = "0.1", default-features = false, features = [ "attributes", "std" ] } | ||
tracing-subscriber = "0.2" | ||
|
||
[dependencies.rad-clib] | ||
path = "../rad-clib" | ||
version = "0.1.0" | ||
|
||
[dependencies.librad] | ||
path = "../librad" | ||
version = "0.1.0" | ||
|
||
[dependencies.thrussh-agent] | ||
git = "https://github.com/FintanH/thrussh" | ||
branch = "generic-agent" | ||
features = [ "tokio-agent" ] |
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.
Uh oh!
There was an error while loading. Please reload this page.