Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAlpha support for `Result`s #12
Comments
This comment has been minimized.
This comment has been minimized.
uberjay
commented
Dec 2, 2018
|
Oh wow, I was just wishing cargo-aoc has this feature. I'll give it a try right now! |
This comment has been minimized.
This comment has been minimized.
nugend
commented
Dec 2, 2018
|
Could you also support Options? |
This comment has been minimized.
This comment has been minimized.
uberjay
commented
Dec 2, 2018
|
It's alright! To be honest, It's a little hard to tell how useful it'll be only 2 days in. Something that would be pretty handy in conjunction with this would be a way to feed in alternate input data. I guess I could just use #[test] functions for this! |
This comment has been minimized.
This comment has been minimized.
gbear605
commented
Dec 3, 2018
|
It's working fine for me! |
This comment has been minimized.
This comment has been minimized.
|
cargo-aoc 0.2.0, with support for Result & Option is out : https://github.com/gobanos/cargo-aoc/releases/tag/0.2.0 |
gobanos
closed this
Dec 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gobanos commentedDec 2, 2018
Generators & Runners now support
Results in return position !I need some feedback before release, so please install alpha & comment on this issue.
Setup
In your Cargo.toml:
In your terminal:
$ cargo install cargo-aoc --force --version 0.2.0-alpha1Examples
Known limitation
By far, the biggest limitation is that I need the return type to be called
Result(it still can be prefixed with a path), with at least a template parameter.So these wont work :