Avoid duplication between `main.rs` and cited code.
broesamle opened this issue · 2 comments
broesamle commented
- README.md could just link to the
*.rs
files in the examples if a complete code view is needed. Maybe even with an iframe or so. - IT should, however, be assured that the examples will not be changed in the future so that README and example match properly.
broesamle commented
git tags (thx to Martin Anselm)
broesamle commented
Tags would work but if you download the corresponding "release" it will contain all files in the repo so far. Branches could be used to separate examples, then.
- master (all examples, most recent version)
- an empty snapshot to branch from for every new example
- ex1: tag1/commit 1 ("starting with hello world") tag2/commit2 (adding a few lines)
- ex2: tag3/commit 3 ("starting from hello world again") ...
As long as ex1 and ex2 will not be merged, the respective tags will only contain the required example files.