Contributing
Thanks for your interest! This hobby project is shared early, and the most useful contributions now are reports from real builds:
- Printed the 120 parts? They are tested with 10×2 mm O-rings only: tell us how they go with yours, and with the leaf springs for 2.5 mm O-rings.
- Detection failed on your negatives? Open an issue with the
preview.pngthatrollscan previewsaved, and the film it is. - Tried your camera? Say which model, and whether
rollscan calibrateandscanworked.
New issue offers four forms: how it went with your camera, something that doesn’t work, a printed part that’s wrong, and something you’d like to do. They ask for what is needed to understand the problem: your system, camera, lens, film, printer and filament.
Development
Section titled “Development”The app is written in Rust; building it yourself says what to install first.
cargo testcargo fmt # the formatting the pull request checks expectcargo clippy --all-targets # must come out without a warningcargo run -- --no-window # the app's page on http://127.0.0.1:8765/, without a windowThe tests need no hardware: they run against a simulated scanner
(src/testing/rig.rs). New behavior comes with a test, ideally
written first and seen failing.
After changing how frames are found or pictures are read (src/detect.rs,
src/centering.rs, src/image.rs), also run the comparison with the
Python it was ported from.
Every pull request into main is checked on Forgejo
(.forgejo/workflows/): formatting, Clippy and tests on Linux,
Clippy on the Windows-only code and, when what they cover changed, the comparison with the
Python, the firmware’s compilation and the website’s build.
Changing the printed parts
Section titled “Changing the printed parts”Edit hardware/cad/film_scanner_parts.py, not the
STL or STEP files generated from it. Regenerate them
(hardware/README.md) and the website’s 3D models
(site/README.md), then commit the
script and the regenerated files together.
The website
Section titled “The website”The website (site/) is built from the docs and the hardware files: nothing to
copy over when you change them. site/README.md says how to run it.
Pull requests
Section titled “Pull requests”Keep each to one change, say what you tested and on which hardware, and make sure the
checks above pass. A new pull request starts from a template
(.forgejo/PULL_REQUEST_TEMPLATE.md): a few words
on what changes for someone using the scanner, the issue it closes, and what was and
wasn’t tested. Its title is the issue number and what changes, as a plain sentence:
#12 - Live view in the app, with the detector's findings drawn on it.