| Crates.io | cockroach_deploy |
| lib.rs | cockroach_deploy |
| version | 0.1.2 |
| created_at | 2025-03-07 01:04:39.70808+00 |
| updated_at | 2025-03-07 06:08:02.733625+00 |
| description | Rust lib for a basic local cockroachdb deployment with optional CLI |
| homepage | |
| repository | https://github.com/simp4t7/cockroach_deploy |
| max_upload_size | |
| id | 1582098 |
| size | 114,035 |
Basic library for deploying a simple local cockroach cluster with an optional CLI included.
The main purpose for this library is quickly deploying a basic cockroachdb cluster locally. You will need a local Kubernetes cluster running for this to work. I have only tested this with minikube, but others may work as well. Additionally, you will need a local config file for setting cockroachdb variables.
if using the CLI:
cargo install cockroach_deploy
usage:
cockroach_deploy_cli --help
if using the library:
cargo add cockroach_deploy
let config = CockroachConfig::new_from_config("cockroach_config.toml")?;
config.init_cockroach()?;
config.delete_cockroach()?;
This is pretty niche, and adapated for my use-case so your mileage may vary. If you are interested and struggling to get it to work, open an issue and I'll do what I can to help adapt it.