File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 shell : bash
4848 if : matrix.rust == 'nightly'
4949 run : |
50- echo "RUSTFLAGS=--cap-lints=warn" >> $GITHUB_ENV
50+ echo "RUSTFLAGS=--cap-lints=warn --cfg doc_cfg" >> $GITHUB_ENV
51+ echo "RUSTDOCFLAGS=--cfg doc_cfg" >> $GITHUB_ENV
5152
5253 - name : Install postgres (Linux)
5354 if : runner.os == 'Linux' && matrix.backend == 'postgres'
@@ -299,7 +300,7 @@ jobs:
299300 uses : actions-rs/cargo@v1
300301 with :
301302 command : doc
302- args : --manifest-path diesel/Cargo.toml --no-deps --no-default-features --features "${{ matrix.backend }} unstable doc_cfg i-implement-a-third-party-backend-and-opt-into-breaking-changes"
303+ args : --manifest-path diesel/Cargo.toml --no-deps --no-default-features --features "${{ matrix.backend }} unstable i-implement-a-third-party-backend-and-opt-into-breaking-changes"
303304
304305 - name : Run rustdoc
305306 if : matrix.run != 'nightly'
Original file line number Diff line number Diff line change 3737 sudo apt-get update
3838 sudo apt-get -y install libmysqlclient-dev libsqlite3-dev libpq-dev
3939 - name : Build documentation
40+ env :
41+ RUSTFLAGS : " --cfg doc_cfg"
42+ RUSTDOCFLAGS : " --cfg doc_cfg"
4043 run :
41- cargo +nightly doc --manifest-path diesel/Cargo.toml --features "postgres sqlite mysql extras i-implement-a-third-party-backend-and-opt-into-breaking-changes doc_cfg " --workspace
44+ cargo +nightly doc --manifest-path diesel/Cargo.toml --features "postgres sqlite mysql extras i-implement-a-third-party-backend-and-opt-into-breaking-changes" --workspace
4245
4346 - name : Publish documentation
4447 if : success()
Original file line number Diff line number Diff line change @@ -68,3 +68,5 @@ doc_cfg = []
6868[package .metadata .docs .rs ]
6969features = [" postgres" , " mysql" , " sqlite" , " extras" ]
7070no-default-features = true
71+ rustc-args = [" --cfg" , " doc_cfg" ]
72+ rustdoc-args = [" --cfg" , " doc_cfg" ]
Original file line number Diff line number Diff line change 158158//! - `32-column-tables`
159159
160160#![ cfg_attr( feature = "unstable" , feature( trait_alias) ) ]
161- #![ cfg_attr( feature = " doc_cfg" , feature( doc_cfg, doc_auto_cfg) ) ]
161+ #![ cfg_attr( doc_cfg, feature( doc_cfg, doc_auto_cfg) ) ]
162162#![ cfg_attr( feature = "128-column-tables" , recursion_limit = "256" ) ]
163163// Built-in Lints
164164#![ deny( warnings) ]
You can’t perform that action at this time.
0 commit comments