Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Rewrite how modules are declared
Merged did:key:z6MkwcUR...q1kL opened 8 months ago

This patchset rewrites how modules are declared (in radicle-cli, because this is the only crate that uses the… unconventional method of declaring modules).

The first patch cleans the thing up, the second patch deprecates the alternative module names. This one I think can be/should be discussed a bit more. I don’t want to just remove the alternative names with this patchset because that might break downstream - whoever that is… if it is only within this repository, lets go and just remove it! If external parties might be involved, we might wait for another release cycle?

The “self” module is a bit of a special case (included this also in the commit message), because self is a identifier in Rust, so it actually has to be rad_self here. Can we think of a better name for the whole module?

That is all, happy to see your review!

did:key:z6MkwcUR...q1kL opened with revision 99a7c4d7 on base 01bed73a +124 -92 8 months ago

This patchset rewrites how modules are declared (in radicle-cli, because this is the only crate that uses the… unconventional method of declaring modules).

The first patch cleans the thing up, the second patch deprecates the alternative module names. This one I think can be/should be discussed a bit more. I don’t want to just remove the alternative names with this patchset because that might break downstream - whoever that is… if it is only within this repository, lets go and just remove it! If external parties might be involved, we might wait for another release cycle?

The “self” module is a bit of a special case (included this also in the commit message), because self is a identifier in Rust, so it actually has to be rad_self here. Can we think of a better name for the whole module?

That is all, happy to see your review!

did:key:z6MkwcUR...q1kL pushed revision 2 2f2659d7 on base 1d7478cd +124 -92 8 months ago

Rebased

did:key:z6MkwcUR...q1kL pushed revision 3 5b688f72 on base 1d7478cd +116 -260 8 months ago
did:key:z6MkwcUR...q1kL pushed revision 4 4ca57bd0 on base 1d7478cd +116 -260 8 months ago

Also remove the deprecated modules, because they are not used anywhere outside the radicle-cli crate anyways.

lorenz commented on revision 1 8 months ago

Super cool, thanks!

I don’t want to just remove the alternative names with this patchset because that might break downstream - whoever that is…

Yeah, I am confused about this as well. And pub… This should be a binary crate without any dependencies, right?!

If it is only within this repository, lets go and just remove it!

I think this is the case.

If external parties might be involved, we might wait for another release cycle?

Not required IMO.

The “self” module is a bit of a special case (included this also in the commit message), because self is a identifier in Rust, […]

Yup.

so it actually has to be rad_self here.

I do not think so. How about r#self?

Can we think of a better name for the whole module?

I would prefer it to be the same as the actual command.

lorenz commented on revision 4 8 months ago

Argh, I commented on the wrong revision. Please see my comment on the initial revision of the patch. It applies to this revision. Sorry for my confusion.

did:key:z6MkwcUR...q1kL pushed revision 5 59896e2c on base f00d1d67 +116 -260 7 months ago

Rebased.

did:key:z6MkwcUR...q1kL commented on revision 1 7 months ago

How about r#self?

I was not able to code this somehow. Feel free to provide a !fixup patch!

lorenz pushed revision 6 1e819009 on base f00d1d67 +116 -260 7 months ago

Squash commits in previous revision and edit commit message.

lorenz pushed revision 7 25ba2b59 on base 11fc98c9 +116 -260 7 months ago

Rebase.

lorenz merged revision 25ba2b59 at ff021d58 7 months ago