Skip to content

Commit b72a510

Browse files
BigLeprvagg
andauthored
docs: document versioning scheme (#2050)
* docs: document versioning scheme This is a result of discussion in filecoin-project/filecoin-ffi#468 * Update README.md Co-authored-by: Rod Vagg <rod@vagg.org> --------- Co-authored-by: Rod Vagg <rod@vagg.org>
1 parent b3caaf6 commit b72a510

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ Here's what you'll find in each directory:
5050
- Disclaimers
5151
- Benchmarks are currently very slow to run, setup and teardown. This is due to using default WASM cache, and will be fixed soon.
5252

53+
## Versioning
54+
At least of 202409, ref-fvm follows this versioning scheme:
55+
* Use the major version whenever we need to make large structural changes where maintaining backwards compatibility without accidentally introducing state mis-matches would be difficult. Basically, major versions drop support for prior network versions. This lets us import multiple copies of the FVM (one per major version) so we can continue to execute/explore old network state.
56+
* Use the minor version to indicate potentially breaking rust API changes. Minor versions keep support for prior network versions. This is how most rust projects would use their major version.
57+
* Use the patch version to indicate that the release is API (rust) compatible with the previous release. Patch releases may add support for new network versions (assuming the patch is on the latest major version), fix bugs, etc.
58+
59+
Below is the mapping between ref-fvm versions and the network upgrade versions they support:
60+
61+
| FVM Version | Supported Network Version Range | Source |
62+
|-------------|---------------------------------|--------|
63+
| v2 | 15-17 | https://github.com/filecoin-project/ref-fvm/blob/release/v2/fvm/src/machine/default.rs#L64 |
64+
| v3 | 18-20 | https://github.com/filecoin-project/ref-fvm/blob/release/v3/fvm/src/machine/default.rs#L63 |
65+
| v4 | 21+ | https://github.com/filecoin-project/ref-fvm/blob/master/fvm/src/machine/default.rs#L55 |
66+
67+
These are relevant issues/discussions about changing FVM versioning:
68+
* https://github.com/filecoin-project/ref-fvm/issues/358
69+
* https://github.com/filecoin-project/ref-fvm/issues/1724
70+
5371
## License
5472

5573
Dual-licensed: [MIT](./LICENSE-MIT), [Apache Software License v2](./LICENSE-APACHE), by way of the

0 commit comments

Comments
 (0)