Skip to content
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

Conditional compilation (Windows, Mac, Linux) #19

Open
mre opened this issue Mar 9, 2018 · 4 comments
Open

Conditional compilation (Windows, Mac, Linux) #19

mre opened this issue Mar 9, 2018 · 4 comments

Comments

@mre
Copy link
Member

mre commented Mar 9, 2018

What?

The original plan was to write a command line tool, that opens a file with the default program on the given operating system, but that already exists. Therefore I'll need to find something else, where I can show conditional compilation on.
Maybe a tool I can port from Golang?

Why?

Show how to structure commands in separate modules.
Build platform-dependent code using cargo.
Show how to use dependency injection or a simple plugin system in Rust?
Explain different idioms in Golang and Rust.

How?

Port open-golang.
I don't know yet.

@mre
Copy link
Member Author

mre commented Mar 9, 2018

@killercup
Copy link
Contributor

Needed that recently and https://github.com/Byron/open-rs did a nice job. It's also is a bit more robust on linux :)

(Not saying that to stop you from doing an episode on this, just so you know it's out there)

@mre
Copy link
Member Author

mre commented Mar 19, 2018

Thanks for the heads-up. Looked at the code an it's intimidatingly good. No surprise, @Byron style.
Plenty of fish in the sea, so I'll close this, I guess. 😅

@mre mre closed this as completed Mar 19, 2018
@mre
Copy link
Member Author

mre commented Mar 19, 2018

No! On second thought, the gist of the show might be conditional compilation. It's just the example that is ill-fitting. I guess I'll simply rename the issue and wait for inspiration (hint, hint) on what might be a good fit for the topic. 😁

@mre mre reopened this Mar 19, 2018
@mre mre changed the title Port open-golang package to Rust Conditional compilation (Windows, Mac, Linux) Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants