Skip to content

fail! macro undefined / outdated #3

@r-arias

Description

@r-arias

hey! thanks for this, I want to use it to route an HTTPS stream through Tor:
I was getting the following error when compiling:

src/socks4a.rs:45:18: 45:22 error: macro undefined: 'fail!'
src/socks4a.rs:45             x => fail!("Unexpected status byte: {}", x)
                                   ^~~~
src/socks4.rs:48:18: 48:22 error: macro undefined: 'fail!'
src/socks4.rs:48             x => fail!("Unexpected status byte: {}", x)
                                  ^~~~
error: aborting due to 2 previous errors
Could not compile `rustsocks`.

I went ahead trying to fix it and got a whole lot of more errors, related to being written for an older version of Rust. I am creating a pull request to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions