-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rename RivetClient back to Rivet (#1536)
<!-- Please make sure there is an issue that this PR is correlated to. --> Fixes RVT-4247 ## Changes <!-- If there are frontend changes, please include screenshots. -->
- Loading branch information
1 parent
04ec2bd
commit 2dff9e5
Showing
137 changed files
with
3,156 additions
and
3,110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/common/config/src/config/server/rivet/cluster_provision.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,43 @@ | ||
use std::{fs::File, path::PathBuf, io::Write}; | ||
use std::{fs::File, io::Write, path::PathBuf}; | ||
|
||
use anyhow::*; | ||
use schemars::{JsonSchema, gen::{SchemaSettings, SchemaGenerator}}; | ||
use schemars::{ | ||
gen::{SchemaGenerator, SchemaSettings}, | ||
JsonSchema, | ||
}; | ||
|
||
fn main() -> Result<()> { | ||
let cwd = std::env::current_dir()?; | ||
let docs_output_path = cwd.join("../../../docs/src/content/docs/"); | ||
|
||
let settings = SchemaSettings::draft07().with(|s| { | ||
s.option_nullable = true; | ||
s.option_add_null_type = false; | ||
}); | ||
let generator = settings.into_generator(); | ||
s.option_nullable = true; | ||
s.option_add_null_type = false; | ||
}); | ||
let generator = settings.into_generator(); | ||
|
||
generate_spec::<rivet_config::config::server::Server>(generator.clone(), docs_output_path.join("self-hosting/server-spec.json"))?; | ||
generate_spec::<pegboard_config::Client>(generator.clone(), docs_output_path.join("self-hosting/client-spec.json"))?; | ||
generate_spec::<rivet_toolchain::config::Root>(generator.clone(), docs_output_path.join("toolchain-spec.json"))?; | ||
generate_spec::<rivet_config::config::server::Server>( | ||
generator.clone(), | ||
docs_output_path.join("self-hosting/server-spec.json"), | ||
)?; | ||
generate_spec::<pegboard_config::Client>( | ||
generator.clone(), | ||
docs_output_path.join("self-hosting/client-spec.json"), | ||
)?; | ||
generate_spec::<rivet_toolchain::config::Root>( | ||
generator.clone(), | ||
docs_output_path.join("toolchain-spec.json"), | ||
)?; | ||
|
||
Ok(()) | ||
} | ||
|
||
fn generate_spec<T: JsonSchema>(generator: SchemaGenerator, path: PathBuf) -> Result<()> { | ||
let schema = generator.into_root_schema_for::<T>(); | ||
let schema_text = serde_json::to_string_pretty(&schema)?; | ||
|
||
let mut file = File::create(path)?; | ||
file.write_all(schema_text.as_bytes())?; | ||
|
||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.