note: this repository will be retired soon, in favor of further modularisation. Please see cdd-core and cdd-ctl instead.
Compiler Driven Development (CDD) command-line interface.
Currently we support macos and linux. As xcode is not available on linux however, the linux adaptor has no current support.
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/offscale/cdd-ctl/master/install.sh | sh
- don't create primary keys in your
openapi.yml
yet, primary keys are automatically created for every resource type. custom keys will be supported soon. - the tool will automatically create a database schema based on your openapi and dump it to database.sql. use this then cd into your server and use the Makefile in there to import your database into the rust server schema.
Install the latest stable version of Rust. CLI tool for installing Rust.
We use rust-clippy linters to improve code quality.
There are plenty of IDEs and other Rust development tools to consider.
# Install Rust (nightly)
$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable
# Install cargo-make (cross-platform feature-rich reimplementation of Make)
$ cargo install --force cargo-make
# Install rustfmt (Rust formatter)
$ rustup component add rustfmt
# Clone this repo
$ git clone https://github.com/offscale/cdd-ctl && cd cdd-ctl
# Run tests
$ cargo test
# Format, build and test
$ cargo make
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.