-
Notifications
You must be signed in to change notification settings - Fork 20
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
wip: rust cli #185
base: master
Are you sure you want to change the base?
wip: rust cli #185
Conversation
Generally looks good to me. I have nothing to add to your TODOs. Thanks! :) |
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.
Thanks for the review! I'll leave a couple more TODOs :)
name = "glome" | ||
path = "src/cli/bin.rs" | ||
|
||
required-features = ["cli"] |
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.
Document what this does.
use std::fs; | ||
use std::io::{self, Read, Write}; | ||
use std::path::PathBuf; | ||
use x25519_dalek::{PublicKey, StaticSecret}; |
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.
Can we make this crypto-lib-agnostic?
if handshake.len() < 33 { | ||
panic!("handshake too short") // TODO(burgerdev): better error output | ||
} | ||
let _message_tag_suffix = handshake.split_off(33); |
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.
Suffix? Prefix?
testable subcommands
First impression of a concise Rust implementation of the CLI - turned out I had this sitting on an abandoned branch.