Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 1 | [package] |
| 2 | name = "compile_with_bazel" |
| 3 | version = "0.0.0" |
| 4 | |
| 5 | # Mandatory (or Cargo tooling is unhappy) |
| 6 | [lib] |
| 7 | path = "fake_lib.rs" |
| 8 | |
| 9 | [dependencies] |
| 10 | mdbook = "0" |
Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 11 | protoc-gen-prost = "0.2.3" |
Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 12 | |
| 13 | [package.metadata.raze] |
| 14 | workspace_path = "//third_party/rust/cargo" |
| 15 | package_aliases_dir = "." |
| 16 | targets = [ |
| 17 | "x86_64-unknown-linux-gnu", |
| 18 | ] |
| 19 | genmode = "Remote" |
| 20 | |
Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 21 | [package.metadata.raze.crates.prost.'0.11.9'] |
| 22 | data_dependencies = [ |
| 23 | "README.md", |
| 24 | ] |
| 25 | |
| 26 | [package.metadata.raze.crates.protoc-gen-prost.'0.2.3'] |
| 27 | data_dependencies = [ |
| 28 | "README.md", |
| 29 | ] |
| 30 | |
Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 31 | [package.metadata.raze.crates.handlebars.'4.3.6'] |
Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 32 | data_dependencies = [ |
| 33 | "src/grammar.pest", |
| 34 | ] |
| 35 | |
Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 36 | [package.metadata.raze.crates.opener.'0.6.1'] |
Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 37 | data_dependencies = [ |
| 38 | "src/xdg-open", |
| 39 | ] |
| 40 | |
Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 41 | [package.metadata.raze.crates.clap.'4.4.6'] |
Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 42 | data_dependencies = [ |
| 43 | "README.md", |
| 44 | "examples/demo.md", |
| 45 | ] |
| 46 | |
Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 47 | [package.metadata.raze.crates.clap_complete.'4.4.3'] |
Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 48 | data_dependencies = [ |
| 49 | "README.md", |
| 50 | ] |
| 51 | |
Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 52 | [package.metadata.raze.crates.clap_builder.'4.4.6'] |
| 53 | data_dependencies = [ |
| 54 | "README.md", |
| 55 | ] |
| 56 | |
| 57 | [package.metadata.raze.crates.bstr.'1.6.2'] |
Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 58 | data_dependencies = [ |
| 59 | "src/unicode/fsm/grapheme_break_fwd.littleendian.dfa", |
| 60 | "src/unicode/fsm/grapheme_break_rev.littleendian.dfa", |
| 61 | "src/unicode/fsm/regional_indicator_rev.littleendian.dfa", |
| 62 | "src/unicode/fsm/sentence_break_fwd.littleendian.dfa", |
| 63 | "src/unicode/fsm/simple_word_fwd.littleendian.dfa", |
| 64 | "src/unicode/fsm/whitespace_anchored_fwd.littleendian.dfa", |
| 65 | "src/unicode/fsm/whitespace_anchored_rev.littleendian.dfa", |
| 66 | "src/unicode/fsm/word_break_fwd.littleendian.dfa", |
| 67 | ] |
| 68 | |
Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 69 | [package.metadata.raze.crates.mdbook.'0.4.35'] |
Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 70 | data_dependencies = [ |
| 71 | "src/theme/playground_editor/ace.js", |
| 72 | "src/theme/playground_editor/editor.js", |
| 73 | "src/theme/playground_editor/mode-rust.js", |
| 74 | "src/theme/playground_editor/theme-dawn.js", |
| 75 | "src/theme/playground_editor/theme-tomorrow_night.js", |
| 76 | |
| 77 | "src/theme/fonts/OPEN-SANS-LICENSE.txt", |
| 78 | "src/theme/fonts/SOURCE-CODE-PRO-LICENSE.txt", |
| 79 | "src/theme/fonts/fonts.css", |
| 80 | "src/theme/fonts/open-sans-v17-all-charsets-300.woff2", |
| 81 | "src/theme/fonts/open-sans-v17-all-charsets-300italic.woff2", |
| 82 | "src/theme/fonts/open-sans-v17-all-charsets-600.woff2", |
| 83 | "src/theme/fonts/open-sans-v17-all-charsets-600italic.woff2", |
| 84 | "src/theme/fonts/open-sans-v17-all-charsets-700.woff2", |
| 85 | "src/theme/fonts/open-sans-v17-all-charsets-700italic.woff2", |
| 86 | "src/theme/fonts/open-sans-v17-all-charsets-800.woff2", |
| 87 | "src/theme/fonts/open-sans-v17-all-charsets-800italic.woff2", |
| 88 | "src/theme/fonts/open-sans-v17-all-charsets-italic.woff2", |
| 89 | "src/theme/fonts/open-sans-v17-all-charsets-regular.woff2", |
| 90 | "src/theme/fonts/source-code-pro-v11-all-charsets-500.woff2", |
| 91 | |
| 92 | "src/theme/searcher/elasticlunr.min.js", |
| 93 | "src/theme/searcher/mark.min.js", |
| 94 | "src/theme/searcher/searcher.js", |
| 95 | |
| 96 | "src/theme/ayu-highlight.css", |
| 97 | "src/theme/book.js", |
| 98 | "src/theme/clipboard.min.js", |
| 99 | "src/theme/favicon.png", |
| 100 | "src/theme/favicon.svg", |
| 101 | "src/theme/head.hbs", |
| 102 | "src/theme/header.hbs", |
| 103 | "src/theme/highlight.css", |
| 104 | "src/theme/highlight.js", |
| 105 | "src/theme/index.hbs", |
| 106 | "src/theme/redirect.hbs", |
| 107 | "src/theme/tomorrow-night.css", |
| 108 | |
| 109 | "src/theme/css/chrome.css", |
| 110 | "src/theme/css/general.css", |
| 111 | "src/theme/css/print.css", |
| 112 | "src/theme/css/variables.css", |
| 113 | |
| 114 | "src/theme/FontAwesome/css/font-awesome.min.css", |
| 115 | "src/theme/FontAwesome/fonts/FontAwesome.otf", |
| 116 | "src/theme/FontAwesome/fonts/fontawesome-webfont.eot", |
| 117 | "src/theme/FontAwesome/fonts/fontawesome-webfont.svg", |
| 118 | "src/theme/FontAwesome/fonts/fontawesome-webfont.ttf", |
| 119 | "src/theme/FontAwesome/fonts/fontawesome-webfont.woff", |
| 120 | "src/theme/FontAwesome/fonts/fontawesome-webfont.woff2", |
| 121 | ] |
| 122 | # Generate the binary target alias //third_party/rust:cargo_bin_mdbook. |
| 123 | extra_aliased_targets = [ |
| 124 | "cargo_bin_mdbook" |
| 125 | ] |
| 126 | # We end up linking mdbook into a binary. rustc, when doing that, calls gcc as |
| 127 | # a linker (probably because cc-rs?). |
| 128 | # |
Leopold | 7fbf104 | 2023-01-06 19:57:37 +0100 | [diff] [blame] | 129 | # On our sandbox sysroot, the gcc used as a linker is /usr/bin/gcc. This gcc |
Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 130 | # then attempts to call its corresponding system ld, expecting it to be on |
| 131 | # PATH. However, rules_rust hermeticizes the build to the point where PATH is |
| 132 | # totally stripped out. Here, we add back /usr/bin back as the sole PATH |
| 133 | # element, thereby making 'ld' resolvable agan by /usr/bin/gcc. |
| 134 | # |
| 135 | # In an ideal world, we would be able to translate Bazel C++ toolchain |
| 136 | # definitions into Cargo/rustc's build system. These definitions technically |
| 137 | # contain everything needed to know how to call a toolchain. However, it seems |
| 138 | # like the current ecosystem of linking C/C++ in Rust is not centralized enough |
| 139 | # for this to be easily doable, as the responsibility is spread between rustc, |
| 140 | # Cargo, and third-party crates like cc-rs. |
| 141 | # |
| 142 | # For now, this has to do - as long as we don't use Cargo/Rust for secondary |
| 143 | # operating system tools like mdbook, and not as something directly in the |
| 144 | # transitive dependency set of building a Metropolis release. This is also why |
| 145 | # we 'fix' this only for mdbook for now, we don't want to even pretend that |
| 146 | # this is something that should be used where reproducibility and hermeticity |
| 147 | # matters. |
| 148 | additional_env.PATH = "/usr/bin" |