-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visibility of methods in shadowsocks #1613
Comments
Make them public means that I have to maintain API compatibility in the future upgrades, but they are really should not being considered as "stable" APIs. |
I see that ProxyClientStream::from_stream is public, so you maintain compatibility for this method but not for server side variant? Is there any particular reason for that? Thanks |
Well, because the Server stream can only be built by Listener, so it doesn't need to be public. The Client stream's I am Ok to make Server stream's |
Thank you very much, that will be enough for me. |
Hello,
I'm building my own personal proxy tool and would like to use the existing shadowsocks-rust project as a library.
I faced a small problem with a function in ProxyServerStream::from_stream - it is marked as pub(crate) and therefore I cannot reuse it in my code. I know about ProxyListener built in shadowsocks crate but I would really prefer to use ProxyServerStream with already accepted TcpStream from Tokio because it is more convenient to work with in my application context.
Can you please elaborate on
pub(crate)
visibility on this method? Can it be done just likepub
?Also I would like to mention CryptoStream::set_request_nonce_with_received and CryptoStream::current_data_chunk_remaining because they are also marked as
pub(crate)
and I think they can be justpub
.Thanks
The text was updated successfully, but these errors were encountered: