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

Remove the environmental awareness feature #16

Merged
merged 15 commits into from
Sep 26, 2022

Conversation

MaeIsBad
Copy link
Member

@MaeIsBad MaeIsBad commented Sep 22, 2022

This PR removes the environmental awareness feature, which due to the limitations of cargo didn't work with dependencies, and replaces it with a simple set_debug_format function.

TODOs:

  • Consider keeping this behind a feature flag like environmental awareness was
  • Consider outputting things as plaintext in tests by default
  • Consider adding support for the VEIL_DISABLE_REDACTION variable

Not using the standard workflow, because I don't have access to youtrack, sorry!

Due to the way cargo works .veil.toml can't impact other crates
consistently.

This reverts commit 69dd762.
Cargo.toml Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/toggle.rs Outdated Show resolved Hide resolved
src/toggle.rs Outdated Show resolved Hide resolved
This is a simpler replacement for the environmental awareness feature.
MaeIsBad and others added 4 commits September 22, 2022 15:52
This is neccessary because rust runs all tests in the same process,
leading to tests failing randomly, because of other tests modifying the
global state. There is some proposal on the rust compiler-team github
repo but until that gets stabilized we have to use this hack instead
rust-lang/compiler-team#508
Ensure that the use of this feature requires a very explicit opt-in from
the user.
README.md Show resolved Hide resolved
.drone.yml Show resolved Hide resolved
veil-tests/disable-redaction-test/Cargo.toml Outdated Show resolved Hide resolved
veil-tests/disable-redaction-test/Cargo.toml Outdated Show resolved Hide resolved
veil-tests/disable-redaction-test/src/lib.rs Outdated Show resolved Hide resolved
* Rename it to veil-tests-disable-redaction
* Set publish = false
* Change the outer line doc comment describing the test into a inner
  line doc comment
This avoids repeating that the disable function needs the toggle feature
flag which makes it clearer that the VEIL_DISABLE_REDACTION envar also
needs the feature flag
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
examples/disable_redaction.rs Outdated Show resolved Hide resolved
src/toggle.rs Outdated Show resolved Hide resolved
MaeIsBad and others added 4 commits September 26, 2022 09:27
Make it clear that to skip redacting data the user needs to either call
the disable function *or* set the VEIL_DISABLE_REDACTION variable, not
both.
@WilliamVenner WilliamVenner merged commit e2d8ffc into master Sep 26, 2022
@WilliamVenner WilliamVenner deleted the mae/remove-env-awareness branch September 26, 2022 08:41
@WilliamVenner
Copy link
Contributor

Oh yeah!!! 🎉

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

Successfully merging this pull request may close these issues.

2 participants