Skip to content

Commit

Permalink
Removed racing feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymushah committed Dec 4, 2023
1 parent 0fb0261 commit d90296f
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 3 deletions.
78 changes: 78 additions & 0 deletions .changes/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"gitSiteUrl": "https://www.github.com/tonymushah/mizuki",
"pkgManagers": {
"rust": {
"version": true,
"getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p' -",
"publish": [
{
"command": "sudo apt-get update",
"dryRunCommand": true,
"pipe": true
},
{
"command": "sudo apt-get install -y webkit2gtk-4.0",
"dryRunCommand": true,
"pipe": true
},
{
"command": "echo \"# Cargo Publish\"",
"dryRunCommand": true,
"pipe": true
},
{
"command": "echo '```'",
"dryRunCommand": true,
"pipe": true
},
{
"command": "cargo publish",
"dryRunCommand": "cargo publish --dry-run --allow-dirty",
"pipe": true
},
{
"command": "echo '```'",
"dryRunCommand": true,
"pipe": true
}
]
},
"javascript": {
"version": true,
"getPublishedVersion": "node ../../.scripts/checkIfPublished.mjs ${ pkgFile.pkg.name } ${ pkg.tag ? pkg.tag : 'latest' }",
"publish": [
{
"command": "echo \"# pnpm Package Publish\"",
"dryRunCommand": true,
"pipe": true
},
{
"command": "echo '```'",
"dryRunCommand": true,
"pipe": true
},
{
"command": "pnpm publish --access public --loglevel silly --no-git-checks",
"dryRunCommand": "pnpm publish --dry-run --access public",
"pipe": true
},
{
"command": "echo '```'",
"dryRunCommand": true,
"pipe": true
}
]
}
},
"packages": {
"mizuki": {
"path": ".",
"manager": "rust"
},
"@mizuki/urql": {
"path": "packages/urql",
"manager": "javascript",
"dependencies": ["mizuki"]
}
}
}
1 change: 0 additions & 1 deletion .github/workflows/format-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
//! );
//!
//! tauri::Builder::default()
//! .plugin(mizuki::MizukiPlugin::new("", schema))
//! .plugin(mizuki::MizukiPlugin::new("list-plugin", schema))
//! .setup(|app| {
//! app.manage(List::default());
//!
Expand Down Expand Up @@ -194,7 +194,7 @@
//! );
//!
//! tauri::Builder::default()
//! .plugin(tauri_plugin_graphql::init(schema));
//! .plugin(mizuki::MizukiPlugin::new("subsciption", schema));
//! ```
//!
//! ## Stability
Expand Down Expand Up @@ -256,9 +256,11 @@ where
context: Some(context),
}
}
/// Get the actual SDL schema format
pub fn sdl(&self) -> String {
self.schema.sdl()
}
/// Export the schema to a new file
pub fn export_sdl<P: AsRef<Path>>(&self, path: P) -> std::io::Result<()> {
let mut file = BufWriter::new(File::create(path)?);
file.write_all(self.sdl().as_bytes())
Expand Down

0 comments on commit d90296f

Please sign in to comment.