Skip to content

Visibility of methods in shadowsocks  #1613

Closed
@botylev

Description

@botylev

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 like pub?

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 just pub.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions