Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Jan 25, 2025
1 parent 3466de5 commit 9f79e1d
Show file tree
Hide file tree
Showing 8 changed files with 675 additions and 651 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "deno-webview"
name = "webview"
version = "0.1.14"
edition = "2021"

Expand Down
10 changes: 9 additions & 1 deletion mise.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
[tools]
python = "3.13.1"
deno = "2.1.5"
rust = { version = "1.78.0", postinstall = "rustup component add rust-analyzer" }
rust = { version = "1.78.0", postinstall = "mise run postinstall:rust" }
ruff = "0.9.1"
uv = "0.5.20"

[settings]
experimental = true
pipx.uvx = true

[tasks."postinstall:rust"]
description = "Postinstall rust"
run = [
"rustup component add rust-analyzer",
"ln -sf $(which rust-analyzer) .vscode/mise-tools/rust-analyzer",
]

[tasks."ci:install-deps"]
hide = true
description = "Install CI dependencies (only runs on CI)"
run = """
{% if env.CI and os() == "linux" %}
Expand Down
95 changes: 54 additions & 41 deletions schemas/WebViewOptions.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/bin/generate_schemas.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use deno_webview::{Message, Request, Response, WebViewOptions};
use schemars::schema_for;
use std::fs::File;
use std::io::Write;
use webview::{Message, Request, Response, WebViewOptions};

fn main() {
let schemas = [
Expand Down
8 changes: 8 additions & 0 deletions src/bin/webview.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use std::env;
use webview::WebViewOptions;

fn main() {
let args: Vec<String> = env::args().collect();
let webview_options: WebViewOptions = serde_json::from_str(&args[1]).unwrap();
webview::run(webview_options).unwrap();
}
Loading

0 comments on commit 9f79e1d

Please sign in to comment.