Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6201c0e
Made contrast enhancer in rust
hannah275 Sep 10, 2026
3668241
Merge branch 'TissueImageAnalytics:develop' into rcontrast
hannah275 Sep 10, 2026
4412d4a
Update viewer.js to remove stashed changes lines
hannah275 Sep 10, 2026
1dcf874
Corrected errors
hannah275 Sep 10, 2026
b58e4a1
Removed unused imports
hannah275 Sep 10, 2026
32bfc4b
Removed unused imports
hannah275 Sep 10, 2026
443f802
Removed unused code
hannah275 Sep 10, 2026
3ea28cd
Merge branch 'develop' into rcontrast
shaneahmed Sep 11, 2026
983314d
Merge branch 'develop' into rcontrast
abdol Sep 17, 2026
1baf6a1
Merge branch 'develop' into rcontrast
shaneahmed Sep 23, 2026
2aea21c
Merge branch 'develop' into rcontrast
abdol Oct 2, 2026
ceccc92
Merge branch 'develop' into rcontrast
shaneahmed Oct 9, 2026
dc9027e
Merge branch 'develop' into rcontrast
shaneahmed Oct 16, 2026
0d84630
:memo: Add Rust installation instructions
abdol Oct 22, 2026
7520150
:bug: Fix import in Rust notebook
abdol Oct 22, 2026
5c99b62
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 23, 2026
69380b4
:fire: Clean up contrast enhancer notebook
abdol Oct 27, 2026
dc34d1f
:twisted_rightwards_arrows: Merge changes from remote
abdol Oct 27, 2026
4d9dbcf
:rotating_light: Fix import lint error
abdol Oct 30, 2026
8997db2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 30, 2026
89264a1
:rotating_light: Fix compile error on macOS
abdol Oct 30, 2026
bccb5b1
:memo: Add docstring to Rust module
abdol Oct 30, 2026
33d8b83
Merge branch 'rust-contrast-enhancer' of https://github.com/TissueIma…
abdol Oct 30, 2026
b1d56bd
Merge branch 'develop' into rust-contrast-enhancer
abdol Oct 30, 2026
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
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
52 changes: 52 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Rust
on:
push:
branches: [ develop, main, master ]
pull_request:
branches: [ develop, main, master ]
jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install dependencies
run: |
sudo apt update
sudo apt-get install -y libopenjp2-7 libopenjp2-tools
python -m pip install --upgrade pip
python -m pip install ruff==0.16.1 pytest pytest-cov pytest-runner
pip install uv
uv pip install --system torch torchvision --index-url https://download.pytorch.org/whl/cpu
uv pip install --system -e .
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::too_many_arguments
- name: Run Rust coverage
shell: bash
run: |
source <(cargo llvm-cov show-env --sh)
cargo llvm-cov clean --workspace
python -m pip install --force-reinstall --no-deps -e .
python -m pytest tests/rust -v
cargo test --all-features
cargo llvm-cov report --lcov --output-path lcov.info
- name: Upload Rust coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info
flags: rust
fail_ci_if_error: false
Comment on lines +9 to +52
1 change: 1 addition & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build:
os: ubuntu-24.04
tools:
python: "3.12"
rust: "latest"
apt_packages:
- libopenjp2-7-dev
- libopenjp2-tools
Expand Down
12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[workspace]
resolver = "2"
members = [
"tiatoolbox/rust/utils/misc",
]

[workspace.package]
version = "0.1.0"
edition = "2024"

[workspace.dependencies]
pyo3 = "0.29.2"
Loading
Loading