Changeset View
Standalone View
shared/comm-opaque2/Cargo.toml
- This file was added.
[package] | |||||
name = "comm-opaque" | |||||
varun: should we give this a different name? or alternatively we could just version comm-opaque, git… | |||||
jonAuthorUnsubmitted Done Inline Actionssince we reference it by path currently, I don't think it makes too much of a difference. I would like to avoid tagging in case there is a use case for touching that code again, then it we will have an awkward time referencing it. jon: since we reference it by path currently, I don't think it makes too much of a difference.
I… | |||||
version = "0.1.0" | |||||
edition = "2021" | |||||
[lib] | |||||
crate-type = ["cdylib", "rlib"] | |||||
varunUnsubmitted Done Inline Actionscan you explain why we are building these targets? cdylib make sense, i'm guessing that's for wasm stuff. however rlib is used to produce statically linked executables as well as staticlib outputs, so not sure why we need it. also don't we need just normal lib here? varun: can you explain why we are building these targets? `cdylib` make sense, i'm guessing that's for… | |||||
jonAuthorUnsubmitted Done Inline Actions"cdylib" is meant for wasm_bindgen. rlib is the compiled intermediate of a crate, so we should be retain this because we will still be using this from other places in the code as a crate. https://users.rust-lang.org/t/what-is-the-difference-between-dylib-and-cdylib/28847/3 jon: "cdylib" is meant for wasm_bindgen. `rlib` is the compiled intermediate of a crate, so we… | |||||
varunUnsubmitted Done Inline Actionsvarun: i think we should use `lib`, not `rlib`
[For current compiler versions there is no difference… | |||||
jonAuthorUnsubmitted Done Inline ActionsSounds good to me. jon: Sounds good to me. | |||||
[dependencies] | |||||
argon2 = "0.4" | |||||
log = "0.4" | |||||
opaque-ke = { version = "2.0", features = [ "argon2" ] } | |||||
rand = "0.8" | |||||
tonic = { version = "0.8", default-features = false } |
should we give this a different name? or alternatively we could just version comm-opaque, git tag it, and not create a new cargo project? i actually think the latter makes more sense...
git tag -a comm-opaque-v0.1.0 -m "comm-opaque version 0.1.0"
then dependencies would consume this library like this
comm-opaque = { git = "https://github.com/CommE2E/comm.git", tag = "comm-opaque-v0.1.0" }