This repository contains edgedb
command-line tool rewritten in rust.
Install the latest stable build with:
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh
Nightly builds can be installed with:
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- --nightly
Use cargo for building it:
cargo build
cargo run -- --admin -d tutorial
cargo test
There are a few categories of tests in this repo:
unit tests within src/
cargo test --bins
,tests/func/
cargo test --test=func
,edgedb-server
binary in PATH,tests/shared-client-tests/
cargo test --package=shared-client-tests
,/home/edgedb
,tests/portable_*.rs/
cargo test --features=portable_tests --test=portable_X
,tests/docker_test_wrapper.rs
cargo test --features=docker_test_wrapper --test=docker_test_wrapper
,Github Actions & Nightly tests
This project uses rustfmt and clippy to provide a unified code style. When opening pull requests, it is advised to run the following commands before doing so:
$ cargo clippy --all-features --workspace --all-targets
$ cargo fmt
Licensed under either of
at your option.