about summary refs log tree commit diff
path: root/src/librustdoc/Cargo.toml
AgeCommit message (Collapse)AuthorLines
2021-09-20Migrate to 2021Mark Rousskov-1/+1
2021-07-29rfc3052: Remove authors field from Cargo manifestsJade-1/+0
Since RFC 3052 soft deprecated the authors field anyway, hiding it from crates.io, docs.rs, and making Cargo not add it by default, and it is not generally up to date/useful information, we should remove it from crates in this repo.
2021-06-20Use Tera templates for rustdoc.Jacob Hoffman-Andrews-0/+1
Replaces a format!() call in layout::render with a template expansion. Introduces a `templates` field in SharedContext so parts of rustdoc can share pre-rendered templates. This currently builds in a copy of the single template available, like with static files. However, future work can make this live-loadable with a perma-unstable flag, to make rustdoc developers' work easier.
2021-05-20Upgrade minifier version to 0.0.41Guillaume Gomez-1/+1
2021-04-21Use arrayvec 0.7, drop smallvec 0.6Jubilee Young-1/+1
With the arrival of min const generics, many alt-vec libraries have updated to use it in some way and arrayvec is no exception. Use the latest with minor refactoring. Also, rustc_workspace_hack is the only user of smallvec 0.6 in the entire tree, so drop it.
2021-04-04use jemallocator in rustc/rustdocGus Wynn-0/+3
2021-03-22missing newline at eofNelson J Morais-1/+1
2021-03-22add key rustc_private for package metadata for rust-analyzer in librustdocNelson J Morais-0/+3
2021-03-09Bump tracing-tree dependencyOli Scherer-1/+1
2021-03-05Update minifier dependency versionGuillaume Gomez-1/+1
2021-02-28Always compile rustdoc with debug logging enabled when `download-rustc` is setJoshua Nelson-0/+7
Previously, logging at DEBUG or below would always be silenced, because rustc compiles tracing with the `static_max_level_info` feature. That makes sense for release artifacts, but not for developing rustdoc. Instead, this compiles two different versions of tracing: one in the release artifacts, distributed in the sysroot, and a new version compiled by rustdoc. Since `rustc_driver` is always linked to the version of sysroot, this copy/pastes `init_env_logging` into rustdoc. The builds the second version of tracing unconditionally; see the code for details on why.
2021-02-14bumped smallvec depsklensy-1/+1
2021-01-30rustdoc tweakingbors-0/+1
* Reuse memory * simplify `next_def_id`, avoid multiple hashing and unnecessary lookups * remove `all_fake_def_ids`, use the global map instead (probably not a good step toward parallelization, though...) * convert `add_deref_target` to iterative implementation * use `ArrayVec` where we know the max number of elements * minor touchups here and there * avoid building temporary vectors that get appended to other vectors At most places I may or may not be doing the compiler's job is this PR.
2021-01-27Update crate name and add READMERune Tynan-1/+1
2021-01-27`src/etc/json-types` -> `src/rustdoc-json-types`Rune Tynan-1/+1
2021-01-27Move into src/etcRune Tynan-1/+1
2021-01-27Split JSON into separately versioned crateRune Tynan-0/+1
2020-11-05Extend automatic_links lint to take into account URLs without link syntaxGuillaume Gomez-0/+1
2020-09-13Upgrade to pulldown-cmark 0.8.0Joshua Nelson-1/+1
Thanks to marcusklaas' hard work in https://github.com/raphlinus/pulldown-cmark/pull/469, this fixes a lot of rustdoc bugs! - Get rid of unnecessary `RefCell` - Fix duplicate warnings for broken implicit reference link - Remove unnecessary copy of links
2020-09-12update the version of itertools and parking_lotAndreas Jonson-1/+1
this is to avoid compiling multiple version of the crates in rustc
2020-08-31Update expect-test to 1.0Aleksey Kladov-1/+1
The only change is that `expect_file` now uses path relative to the current file (same as `include!`). Before, it used paths relative to the workspace root, which makes no sense.
2020-08-30cleanup: Remove duplicate library names from `Cargo.toml`sVadim Petrochenkov-1/+0
2020-08-27Add expect test for rustdoc html highlightingAleksey Kladov-0/+3
It's a unit-test in a sense that it only checks syntax highlighting. However, the resulting HTML is written to disk and can be easily inspected in the browser. To update the test, run with `--bless` argument or set `UPDATE_EXPEC=1` env var
2020-08-19Return all impls, not just the primary oneJoshua Nelson-0/+1
2020-02-14Update pulldown-cmark dependencyGuillaume Gomez-1/+1
2019-12-24Show value for consts in the documentationOhad Ravid-0/+1
2019-12-12replace serialize with serde in rustdocAndy Russell-0/+2
2019-10-07Rebase rustc-rayon on rayon-1.2Josh Stone-1/+1
See also https://github.com/rust-lang/rustc-rayon/pull/3
2019-08-11Remove ReentrantMutexMark Rousskov-1/+0
This drops the parking_lot dependency; the ReentrantMutex type appeared to be unused (at least, no compilation failures occurred). This is technically a possible change in behavior of its users, as lock() would wait on other threads releasing their guards, but since we didn't actually remove any threading or such in this code, it appears that we never used that behavior (the behavior change is only noticeable if the type previously was used in two threads, in a single thread ReentrantMutex is useless).
2019-07-28Update minifier-rs versionGuillaume Gomez-1/+1
2019-07-20Update pulldown-cmark versionGuillaume Gomez-1/+1
2019-06-21Add DocFS layer to rustdocRobert Collins-0/+1
* Move fs::create_dir_all calls into DocFS to provide a clean extension point if async extension there is needed. * Convert callsites of create_dir_all to ensure_dir to reduce syscalls. * Convert fs::write usage to DocFS.write (which also removes a lot of try_err! usage for easier reading) * Convert File::create calls to use Vec buffers and then DocFS.write in order to consistently reduce syscalls as well, make deferring to threads cleaner and avoid leaving dangling content if writing to existing files.... * Convert OpenOptions usage similarly - I could find no discussion on the use of create_new for that one output file vs all the other files render creates, if link redirection attacks are a concern DocFS will provide a good central point to introduce systematic create_new usage. (fs::write/File::create is vulnerable to link redirection attacks). * DocFS::write defers to rayon for IO on Windows producing a modest speedup: before this patch on my development workstation: $ time cargo +mystg1 doc -p winapi:0.3.7 Documenting winapi v0.3.7 Finished dev [unoptimized + debuginfo] target(s) in 6m 11s real 6m11.734s Afterwards: $ time cargo +mystg1 doc -p winapi:0.3.7 Compiling winapi v0.3.7 Documenting winapi v0.3.7 Finished dev [unoptimized + debuginfo] target(s) in 49.53s real 0m49.643s I haven't measured how much time is in the compilation logic vs in the IO and outputting etc, but this takes it from frustating to tolerable for me, at least for now.
2019-05-29upgrade rustdoc's `pulldown-cmark` to 0.5.2Andy Russell-1/+1
Fixes #60482.
2019-04-23Fix index-page generationGuillaume Gomez-1/+1
2019-04-22upgrade rustdoc's pulldown-cmark to 0.4.1Andy Russell-1/+1
2019-03-27Speed up rustdoc run a bitGuillaume Gomez-1/+1
2019-02-23Auto merge of #57051 - Eijebong:parking_lot, r=nikomatsakisbors-1/+1
Update parking_lot to 0.7 Unfortunately this'll dupe parking_lot until the data_structures crate is published and be updated in rls in conjunction with crossbeam-channel
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-0/+1
2019-02-22Update parking_lot to 0.7Bastien Orivel-1/+1
Unfortunately this'll dupe parking_lot until the data_structures crate is published and be updated in rls in conjunction with crossbeam-channel
2019-01-25Update minifier versionGuillaume Gomez-1/+1
2019-01-17End fixing search index minificationGuillaume Gomez-1/+1
2019-01-17Reduce search-index.js sizeGuillaume Gomez-1/+1
2018-10-11Update minifier versionGuillaume Gomez-1/+1
2018-09-20shuffle ownership of `external_traits`QuietMisdreavus-0/+1
constraints: - clean/inline.rs needs this map to fill in traits when inlining - fold.rs needs this map to allow passes to fold trait items - html/render.rs needs this map to seed the Cache.traits map of all known traits The first two are the real problem, since `DocFolder` only operates on `clean::Crate` but `clean/inline.rs` only sees the `DocContext`. The introduction of early passes means that these two now exist at the same time, so they need to share ownership of the map. Even better, the use of `Crate` in a rustc thread pool means that it needs to be Sync, so it can't use `Lrc<Lock>` to manually activate thread-safety. `parking_lot` is reused from elsewhere in the tree to allow use of its `ReentrantMutex`, as the relevant parts of rustdoc are still single-threaded and this allows for easier use in that context.
2018-08-15Fix links' colorGuillaume Gomez-1/+1
2018-06-25Minify cssGuillaume Gomez-1/+1
2018-06-20Replace tempdir by tempfile in librustdocBastien Orivel-1/+1
2018-05-12Add minification processGuillaume Gomez-0/+1
2018-02-22Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytmbors-2/+0
Update nightly to 1.26.0 and bootstrap from beta.
2018-02-20stage0 cfg cleanupMark Simulacrum-2/+0