Skip to content

Commit 7245359

Browse files
authored
✨ True Async notifykit API (#46)
- Introduced the tokio runtime to power watch/unwatch/event methods - removed sync API for now - removed anyio
1 parent fd01098 commit 7245359

File tree

17 files changed

+1555
-253
lines changed

17 files changed

+1555
-253
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- uses: actions/setup-python@v4
19-
with:
20-
python-version: '3.12'
21-
2218
- name: install rust
2319
uses: actions-rs/toolchain@v1
2420
with:
@@ -30,12 +26,15 @@ jobs:
3026
- name: cache rust
3127
uses: Swatinem/rust-cache@v1
3228

33-
- name: Setup PDM
34-
uses: pdm-project/setup-pdm@v4
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v6
31+
with:
32+
enable-cache: true
33+
python-version: '3.12'
3534

3635
# You are now able to use PDM in your workflow
3736
- name: Install dependencies
38-
run: pdm install
37+
run: uv sync --locked --all-extras --dev
3938

4039
- name: Lint Rust codebase
4140
run: make lib-lint

Cargo.lock

Lines changed: 233 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notifykit_lib"
3-
version = "0.0.9-alpha.1"
3+
version = "0.1.0-alpha.1"
44
edition = "2021"
55

66
description = "A toolkit for building applications watching filesystem changes"
@@ -21,6 +21,8 @@ notify = { version = "6.1.1"}
2121
pyo3 = {version = "0.20.0", features = ["extension-module", "abi3-py38"]}
2222
file-id = "0.2.1"
2323
walkdir = "2.4.0"
24+
pyo3-asyncio = { version = "0.20.0", features = ["tokio-runtime"] }
25+
tokio = { version = "1.45.1", features = ["rt-multi-thread", "time", "macros", "sync"] }
2426

2527
[lib]
2628
name = "_notifykit_lib"

0 commit comments

Comments
 (0)