Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by boywitharupee

3 years ago

what is the Rust equivalent for #embed?

3 comments

boywitharupee

Reply

zRedShift  3 years ago

https://doc.rust-lang.org/std/macro.include_bytes.html

guipsp  3 years ago

https://doc.rust-lang.org/std/macro.include_bytes.html

  • dbrgn  3 years ago

    And there's also https://doc.rust-lang.org/std/macro.include_str.html for strings.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities