* app compiles with every ee substituted
* Replace all oss files content
* Revert "Replace all oss files content"
This reverts commit ea4017d59f.
* delete all ee
* hide all _ee files under private flag
* hide every oss stuff when private flag set
* pub use *
* gitignore and substitute script
* pub mod for ee needed for ee repo
* small mistakes
* remove oidc_oss impl
* ee ref (temp)
* ee ref
* fix --all-features selecting private in OSS CI
* ee repo ref
* allow unused
20 lines
561 B
Bash
Executable File
20 lines
561 B
Bash
Executable File
# This script outputs all features except private. Usage :
|
|
# > cargo build --features $(./all_features_oss.sh)
|
|
|
|
#!/bin/bash
|
|
|
|
# Path to the Cargo.toml file
|
|
CARGO_TOML_PATH="./Cargo.toml"
|
|
|
|
# Extract features from Cargo.toml and output them separated by commas
|
|
if [[ -f "$CARGO_TOML_PATH" ]]; then
|
|
grep -A 100 '\[features\]' "$CARGO_TOML_PATH" | \
|
|
sed -n '/\[features\]/,/^\[/p' | \
|
|
grep -E '^[a-zA-Z0-9_-]+' | \
|
|
grep -v 'private' | \
|
|
cut -d' ' -f1 | \
|
|
paste -sd ',' -
|
|
else
|
|
echo "Cargo.toml not found at $CARGO_TOML_PATH"
|
|
exit 1
|
|
fi |