8000 Support feature flags through attributes · Issue #40 · reproto/reproto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support feature flags through attributes #40
Open
@udoprog

Description

@udoprog

Collect and find a method to propagate feature flags to permit experimentation with optional or unstable features.

Straight up stolen from Rust:

#[feature(name_of_feature)]

We need to make the feature flag accessible during all parts of code generation. This probably means we should put it in the Context somehow, but contexts are currently global, and feature flags would be set per-specification (a.k.a. file). Some layered approach might be necessary.

Initially it will be enough to simply decode and validate the feature in environment until it is actually needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0