Compare commits

...

3 Commits

  1. 1
      .gitignore
  2. 4
      Cargo.lock
  3. 13
      DEV.md
  4. 4
      ng-broker/Cargo.toml
  5. 24
      ng-broker/src/server_ws.rs
  6. 2
      ng-repo/Cargo.toml

1
.gitignore vendored

@ -15,4 +15,3 @@ node_modules
*/ng-example/*
.vscode/settings.json
.env.local
ng-broker/static

4
Cargo.lock generated

@ -3577,8 +3577,8 @@ dependencies = [
[[package]]
name = "ng_threshold_crypto"
version = "0.4.0"
source = "git+https://git.nextgraph.org/NextGraph/threshold_crypto.git?branch=master#f3fee569e04999b898a1b3edc412ebf961099550"
version = "0.4.1"
source = "git+https://git.nextgraph.org/NextGraph/threshold_crypto.git?branch=master#5475af23b4fe77f5ad1aba083c9058379065fffa"
dependencies = [
"byteorder",
"ff",

@ -167,15 +167,7 @@ cargo test --package ng-client-ws --lib -- remote_ws::test::test_ws --show-outpu
### Build release binaries
First you will need to have the production build of the frontend.
If you do not want to setup a whole development environment for the frontend, you can use the precompiled release of the frontend available in `dist-file.tar.gz` that you can download from the release page.
```
cd ng-app
tar -xzf dist-file.tar.gz
cd ..
```
Otherwise, build from source the single-file release of ng-app
You need to freshly built it from source, following those instructions:
```
cargo install cargo-run-script
@ -187,9 +179,6 @@ pnpm -C ./ng-app install
pnpm -C ./ng-app webfilebuild
pnpm -C ./helpers/app-auth install
pnpm -C ./helpers/app-auth build
mkdir ng-broker/static
cp -r ./ng-app/dist-file ./ng-broker/static/app
cp -r ./helpers/app-auth/dist ./ng-broker/static/app-auth
```
then build the ngd daemon

@ -24,14 +24,14 @@ either = { version = "1.8.1", features=["serde"] }
async-std = { version = "1.12.0", features = ["attributes"] }
async-trait = "0.1.64"
rust-embed= { version = "6.7.0", features=["include-exclude"] }
ng-async-tungstenite = { version = "0.22.2", git = "https://git.nextgraph.org/NextGraph/async-tungstenite.git", branch = "nextgraph", features = ["async-std-runtime"] }
urlencoding = "2.1.3"
blake3 = "1.3.1"
ng-async-tungstenite = { version = "0.22.2", git = "https://git.nextgraph.org/NextGraph/async-tungstenite.git", branch = "nextgraph", features = ["async-std-runtime"] }
ng-repo = { path = "../ng-repo", version = "0.1.1-alpha.2" }
ng-net = { path = "../ng-net", version = "0.1.1-alpha.2" }
ng-client-ws = { path = "../ng-client-ws", version = "0.1.1-alpha.2" }
ng-verifier = { path = "../ng-verifier", version = "0.1.1-alpha.2" }
ng-storage-rocksdb = { path = "../ng-storage-rocksdb", version = "0.1.1-alpha.2" }
urlencoding = "2.1.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2.7"

@ -192,14 +192,12 @@ fn prepare_urls_from_private_addrs(addrs: &Vec<BindAddress>, port: u16) -> Vec<S
res
}
#[cfg(not(docsrs))]
#[derive(RustEmbed)]
#[folder = "../ng-app/dist-file/"]
#[include = "*.sha256"]
#[include = "*.gzip"]
struct App;
#[cfg(not(docsrs))]
#[derive(RustEmbed)]
#[folder = "../helpers/app-auth/dist/"]
#[include = "*.sha256"]
@ -207,20 +205,18 @@ struct App;
struct AppAuth;
#[cfg(docsrs)]
#[derive(RustEmbed)]
#[folder = "./static/app/"]
#[include = "*.sha256"]
#[include = "*.gzip"]
struct App;
// #[derive(RustEmbed)]
// #[folder = "./static/app/"]
// #[include = "*.sha256"]
// #[include = "*.gzip"]
// struct App;
#[cfg(docsrs)]
#[derive(RustEmbed)]
#[folder = "./static/app-auth/"]
#[include = "*.sha256"]
#[include = "*.gzip"]
// #[derive(RustEmbed)]
// #[folder = "./static/app-auth/"]
// #[include = "*.sha256"]
// #[include = "*.gzip"]
struct AppAuth;
// struct AppAuth;
#[derive(RustEmbed)]
#[folder = "src/public/"]

@ -37,7 +37,7 @@ ed25519-dalek = "1.0.1"
sbbf-rs-safe = "0.3.2"
lazy_static = "1.4.0"
curve25519-dalek = "3.2.0"
ng_threshold_crypto = { version = "0.4.0", git = "https://git.nextgraph.org/NextGraph/threshold_crypto.git", branch = "master" }
ng_threshold_crypto = { version = "0.4.1", git = "https://git.nextgraph.org/NextGraph/threshold_crypto.git", branch = "master" }
crypto_box = { version = "0.8.2", features = ["seal"] }
zeroize = { version = "1.7.0", features = ["zeroize_derive"] }
base64-url = "2.0.0"

Loading…
Cancel
Save