Skip to content

Compiler-driven development CLI

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

offscale/cdd-ctl

Repository files navigation

note: this repository will be retired soon, in favor of further modularisation. Please see cdd-core and cdd-ctl instead.

cdd-ctl

Rust: nightly License: (Apache-2.0 OR MIT) Build Status

Compiler Driven Development (CDD) command-line interface.

Installing

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

Usage

Quick tips

  • 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.

Developer guide

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.

Step-by-step guide

# 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

License

Licensed under either of

at your option.

Contribution

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.

About

Compiler-driven development CLI

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages