Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

GitHub Action to validate that only allowed features are enabled

Notifications You must be signed in to change notification settings

enarx-archive/nightly-features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

allowed-nightly-features

A Github Action that tests which nightly features your Rust code enables, and checks those enabled features against an allowlist you provide.

If unallowed features are enabled, the test will point out the offending files and features.

Usage

Include the action as part of a workflow that performs a checkout, and provide a comma-separated list of the features you'd like to allow as input to the action under the allowed_features name.

The following example will allow only the asm, raw_ref_macros, and ptr_offset_from features to be enabled:

name: check-nightly-features

on:
  pull_request

jobs:
  check-nightly-features:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@v2
    - uses: enarx/nightly-features@master
      with:
        allowed_features: 'asm, raw_ref_macros, ptr_offset_from'

About

GitHub Action to validate that only allowed features are enabled

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages