Skip to content

Support for compile-time environment variable lookup #11

Description

@MiSawa

First off, thank you for the great crate!

I'm now generating some plaintext in build.rs to $OUT_DIR/foo.txt, and including it in the library code like include_str!(concat!(env!("OUT_DIR"), "/foo.txt")). It'd be great if flate! also supports either

  • flate!(concat!(env!("OUT_DIR"), "/foo.txt")), or
  • flate!("$OUT_DIR/foo.txt")

so that one can use include-flate for generated file stored in OUT_DIR (or wherever else relative to an environment variable).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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