Don't include LGPL docs in the docs if both embed-lgpl-docs and purge-lgpl-docs features are selected

This makes usage of RLS/rust-analyzer on the repository much faster and
less annoying as the docs don't have to be included and removed on every
change.
This commit is contained in:
Sebastian Dröge 2020-05-13 23:39:30 +03:00
parent 93bc5c9324
commit 4097c15c96
16 changed files with 128 additions and 32 deletions

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}

View file

@ -2,7 +2,10 @@ fn main() {
manage_docs();
}
#[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))]
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
extern crate stripper_lib;
use std::io;
@ -30,5 +33,8 @@ fn manage_docs() {
}
}
#[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))]
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}