forked from mirrors/gstreamer-rs
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:
parent
93bc5c9324
commit
4097c15c96
16 changed files with 128 additions and 32 deletions
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
Loading…
Reference in a new issue