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

Investigate rust-script #4

Closed
epage opened this issue Mar 8, 2022 · 2 comments
Closed

Investigate rust-script #4

epage opened this issue Mar 8, 2022 · 2 comments

Comments

@epage
Copy link
Owner

epage commented Mar 8, 2022

https://crates.io/crates/rust-script

@epage
Copy link
Owner Author

epage commented Mar 15, 2022

This is a fork of #1

Uses .ers extension instead of .crs

@epage
Copy link
Owner Author

epage commented Mar 15, 2022

rustdoc's main code: https://github.com/rust-lang/rust/blob/master/src/librustdoc/doctest.rs#L554

  • Parses for a main function
  • Falls back to text search if macros are being used

For generating main

  • If it ends with (()) then it is expected to return Result<(), Debug>
  • It unwraps that

@epage epage closed this as completed Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant