fork/cargo

git clone https://git.julia.blue/fork/cargo

Weihang Lofix(cli): Adjust messages to match rustc (#15928)3ceb2cb25

home-0.5.12
1.7 KiB44 linesraw
1<svg width="2036px" height="200px" xmlns="http://www.w3.org/2000/svg">
2  <style>
3    .fg { fill: #AAAAAA }
4    .bg { background: #000000 }
5    .fg-bright-green { fill: #55FF55 }
6    .fg-bright-red { fill: #FF5555 }
7    .container {
8      padding: 0 10px;
9      line-height: 18px;
10    }
11    .bold { font-weight: bold; }
12    tspan {
13      font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
14      white-space: pre;
15      line-height: 18px;
16    }
17  </style>
18
19  <rect width="100%" height="100%" y="0" rx="4.5" class="bg" />
20
21  <text xml:space="preserve" class="container fg">
22    <tspan x="10px" y="28px"><tspan class="fg-bright-green bold">    Creating</tspan><tspan> binary (application) package</tspan>
23</tspan>
24    <tspan x="10px" y="46px"><tspan class="fg-bright-red bold">error</tspan><tspan>: invalid character `.` in package name: `foo.bar`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters)</tspan>
25</tspan>
26    <tspan x="10px" y="64px"><tspan>If you need a package name to not match the directory name, consider using --name flag.</tspan>
27</tspan>
28    <tspan x="10px" y="82px"><tspan>If you need a binary with the name "foo.bar", use a valid package name, and set the binary name to be different from the package. This can be done by setting the binary filename to `src/bin/foo.bar.rs` or change the name in Cargo.toml with:</tspan>
29</tspan>
30    <tspan x="10px" y="100px">
31</tspan>
32    <tspan x="10px" y="118px"><tspan>    [[bin]]</tspan>
33</tspan>
34    <tspan x="10px" y="136px"><tspan>    name = "foo.bar"</tspan>
35</tspan>
36    <tspan x="10px" y="154px"><tspan>    path = "src/main.rs"</tspan>
37</tspan>
38    <tspan x="10px" y="172px">
39</tspan>
40    <tspan x="10px" y="190px">
41</tspan>
42  </text>
43
44</svg>