Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/publish-crates.io.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish on crates.io

on:
workflow_dispatch:

jobs:
publish-rust:
runs-on: ubuntu-latest
environment: crates.io
permissions:
id-token: write
steps:
- uses: actions/checkout@v7
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- run: cargo publish -p utile
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
111 changes: 75 additions & 36 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions puv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This crate allows you to run plain PEP 723 scripts, or scripts that expose a `pr

```python
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = ["numpy"]
# ///

Expand All @@ -38,7 +38,7 @@ def process(x: Input) -> int:
let function = PythonFunction {
function: r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = ["numpy"]
# ///

Expand Down Expand Up @@ -98,7 +98,7 @@ struct Output {
let function = PythonFunction {
function: r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = ["pydantic"]
# ///

Expand Down
10 changes: 5 additions & 5 deletions puv/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl PythonFunction {
pub(super) fn simple() -> (Self, Vec<TestValue>) {
const FUNCTION: &str = r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = []
# ///

Expand Down Expand Up @@ -314,7 +314,7 @@ def process(input: int) -> int:
pub(super) fn dep() -> (Self, Vec<TestValue>) {
const FUNCTION: &str = r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = ["numpy", "pandas"]
# ///

Expand Down Expand Up @@ -343,7 +343,7 @@ def process(x: int) -> list[int]:
pub(super) fn exception() -> (Self, Vec<TestValue>) {
const FUNCTION: &str = r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = []
# ///

Expand Down Expand Up @@ -380,7 +380,7 @@ Exception: This is a test
pub(super) fn invalid_function() -> (Self, Vec<TestValue>) {
const FUNCTION: &str = r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = []
# ///

Expand Down Expand Up @@ -410,7 +410,7 @@ def pro cess(input: int) -> int:
pub(super) fn invalid_import() -> (Self, Vec<TestValue>) {
const FUNCTION: &str = r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = []
# ///

Expand Down
4 changes: 2 additions & 2 deletions puv/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ mod tests {

const TEST_SCRIPT: &str = r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = []
# ///

Expand Down Expand Up @@ -200,7 +200,7 @@ mod exception_tests {

const TEST_EXCEPTION_SCRIPT: &str = r#"
# /// script
# requires-python = "==3.10"
# requires-python = "==3.10.*"
# dependencies = []
# ///

Expand Down
1 change: 0 additions & 1 deletion resource/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ bytes = "1"
directories = "6"
flate2 = "1"
futures = "0.3"
hyperx = { version = "1", git = "https://github.com/QuartzLibrary/hyperx", rev = "b4bf9e31a8a8676bb0ce229fec36a140e0d096f7" } # branch = "bump"
indicatif = { version = "0.17", features = ["tokio"] }
log = "0.4"
nohash-hasher = "0.2"
Expand Down
15 changes: 9 additions & 6 deletions utile/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
[package]
name = "utile"
version = "0.1.0"
version = "0.1.1"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Utility library"

[features]
nightly = []

[dependencies]
ahash = "0.8"
bytes = "1"
content_disposition = "0.4"
futures = "0.3"
hyperx = { version = "1", git = "https://github.com/QuartzLibrary/hyperx", rev = "b4bf9e31a8a8676bb0ce229fec36a140e0d096f7" } # branch = "bump"
log = "0.4"
nohash-hasher = "0.2"
pin-project = "1"
plotly = "0.12"
rand = "0.9"
rand = "0.10"
regex = "1"
reqwest = { version = "0.12", features = ["blocking", "stream"] }
reqwest = { version = "0.12" }
rmp-serde = "1.3.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Expand All @@ -32,8 +34,9 @@ web-time = "1.1.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
gloo-timers = { version = "0.3.0", features = ["futures"] }
wasm-bindgen-futures = "0.4"
getrandom = { version = "0.3", features = ["wasm_js"] }
_getrandom = { version = "0.2", features = ["js"], package = "getrandom" }
_getrandom4 = { version = "0.4", features = ["wasm_js"], package = "getrandom" }
_getrandom3 = { version = "0.3", features = ["wasm_js"], package = "getrandom" }
_getrandom2 = { version = "0.2", features = ["js"], package = "getrandom" }

[dev-dependencies]
tokio = { version = "1", features = ["macros"] }
Loading
Loading