- Add
rustdoc_json::Builder::build_with_captured_output(self, stdout: impl std::io::Write, stderr: impl std::io::Write)
. - Introduce new errors
rustdoc_json::BuildError::BuildRustdocJsonError
,BuildError::CapturedOutputError
andBuildError::CommandExecutionError
and partially switch to those fromBuildError::General
. - Add
rustdoc_json::Builder::color(self, color: rustdoc_json::Color)
to control--color
ofcargo
.
- Remove
rustdoc_json::Builder::verbose()
and use thetracing
crate for debug logging instead. - Print a nice error message if
rustup
is not inPATH
. - Bump cargo-manifest from v0.13.0 to 0.14.0.
- Bump deps. Most notably cargo-manifest from 0.12.0 to 0.13.0.
- Add
rustdoc_json::Builder::verbose(bool)
- Handle when
[package]
name
differs from[lib]
name
- Replace
-
with_
also in e.g. bin packages - Remove support for
"crate_name@1.2.3"
toBuilder::package_target()
. I don't think anyone uses that. Let me know if you do and if I need to yank this release and bump to v0.9.0.
- Simplify
BuildError::General
error message - Bump deps
- Make
rustdoc_json::Builder::clear_toolchain()
actually clear the toolchain
- Bump deps
- Bump deps, most notably
toml
from 0.5.11 to 0.7.2
- Bump deps
- Change
Builder::toolchain(...)
to takeInto<String>
instead ofInto<Option<String>>
to make client code nicer in 99% of cases. IntroduceBuilder::clear_toolchain()
for the 1%.
- Correctly determine json path for
Builder::default().package("crate@1.0.0")
- Add
Builder::package_target()
andPackageTarget
- Add
Builder::silent()
to suppress stdout and stderr - Bump all deps
- Derive
Clone
forrustdoc_json::Builder
- Add
Builder::document_private_items()
- Add
Builder::clear_target_dir()
- Remove deprecated
BuildOptions
andfn build(...)
. UseBuilder
andBuilder::build()
instead. - Use
cargo-manifest
to parse Cargo manifests
- Remove
BuildError::CargoTomlError
(andcargo_toml
dependency)
- Remove most of
BuildOptions
, only leave deprecation message
- Add
Builder::target_dir()
- rename
BuildOptions
toBuilder
, a new insta-deprecated aliasBuildOptions
is available - deprecate
build()
, replaced withBuilder::build()
- Allow changing
--cap-lints
- Support for specifying
--target
,--features
, and--package
- Make it clearer that
RUSTUP_TOOLCHAIN
and friends has an impact
- Don't eat up stdout and stderr
- Change
fn build()
to takeBuildOptions
- Make sure
RUSTDOC
andRUSTC
env vars are cleared before building rustdoc JSON
- First public release