rust-libp2p icon indicating copy to clipboard operation
rust-libp2p copied to clipboard

Rendezvous: Make `/rendezvous/1.0.0` public

Open 12TreeMan31 opened this issue 2 months ago • 3 comments

Description

Change rendezvous::PROTOCOL_IDENT from pub(crate) to pub.

Motivation

Rendezvous should provide its protocol id for consistency with other modules that do the same

Current Implementation

rendezvous::PROTOCOL_IDENT is set to pub(crate)

Are you planning to do it yourself in a pull request?

Yes

12TreeMan31 avatar Oct 02 '25 19:10 12TreeMan31

Hey @12TreeMan31. While I am not against having it public, could you explain what your use case might be to having it public besides consistency? I would have to double check, but I dont believe the rendezvous protocol supports changing its protocol, hence it's being used (and visible) only within the crate itself. The only use case I might see is if one is checking the protocol list from identify and using the identifier from rendezvous instead of their own (though it would not change anytime soon since its that way from spec).

dariusc93 avatar Oct 02 '25 22:10 dariusc93

Hi @dariusc93. Sorry if I was being vague, but I am doing exactly what you describe with identify. The main reason I am doing that is so I can keep track of rendezvous servers I have connected to. While it is easy to just provide the protocol id myself, I noticed that other protocol ids are already provided and I wasn't sure why.

12TreeMan31 avatar Oct 03 '25 01:10 12TreeMan31

Thanks! Well im not against it being public. It would probably make it more consistent across other protocols that have it public as well.

dariusc93 avatar Oct 07 '25 11:10 dariusc93