or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Cargo team meeting notes
2023-09-12
Meeting canceled
2023-09-05
home
maintainershipstd::env::home
or somethingcargo-home
.home
, and pointing to the new standard library.2023-08-29
Cargo.lock
announcement post[patch]
not supporting different names?patch
works is an overlay on top of the source. If that overlay gives a different response for something (giving a different package than what was expected), the rest of cargo could be confused.[patch]
won't apply in publishing.home
to compile on wasmhome
to an external maintainer?dirs
is commonly used, and provides access to the home directory.home
in the first place.None
on all other platforms? We don't want it to do anything else.home
as a general-purpose crate (and maybe point to other options?).[lib]
tocargo_home
.2023-08-22
cargo new
updatingworkspace.members
--workspace
flag, or is it broader?--workspace
might be a little confusing, it could mean two things "add to a workspace" versus "create a new workspace".--workspace
takes an argument. false could mean don't add to a workspace, other values[workspace]
should be an opt-in.2023-08-15
-dev
packages installed.-Z
flag be separate from the credential provider?@rami3l
to help there-Zfoo
, thenfoo.rs
feature.rs
?2023-08-08
No Jacob
cargo update
.crate
file for targets.cargo_toml
has an abstract trait for reading from the compressed.crate
file to discover if there are binaries and such.toml::Value
that is untyped so that any type changes wouldn't affect them?cargo
to parse it?.crate
file to read the manifest.Cargo.toml
to a string, and pass that in.read_manifest_from_str
is currently privatecargo
would be ok?cargo
would require a git or path dependency.--keep-going
?--keep-going
andcargo test --no-fail-fast
.--keep-going
to also imply--no-fail-fast
.--keep-going
is a pretty wide-spread option, and-k
is a common shorthand.2023-08-01
No Jon, Jacob
cargo new
?cargo new
.src/main.rs
gets created for a bin, andsrc/lib.rs
for--lib
.Cargo.toml
, does it need to have something like "ignore version control".cargo fmt
formattingCargo.toml
in style edition 2024?cargo fmt
formatting it in 2024?cargo fix
.2023-07-25
No Jon
build-rs
ownership to cargo and help maintain in order to have a good name for a blessed build script API cratecargo::
change less invasive.::
change is a good opportunity to say "as long as you're migrating, migrate to this crate instead"build-rs
crate name isbuild
. Uncertainty about naming in general.Sample error when a credential provider is not configured:
cargo:token
be disallowed as a credential provider. Someone could just as easily make a provider that does the same thing.-Zcredential-process
andcargo:paseto
-Zcredential-process
.cargo login
no longer has flags for setting it up.cargo:token
- currently the only stable optioncargo:macos-keychain
cargo:wincred
cargo:1password
- should possibly be moved to external cratecargo:paseto
- stabilizes asymmetric tokenscargo:basic [..]
- stabilizes the basic protocol[external-provider]
- stabilizes the JSON protocoladaptor
(oradapter
)? LOL.cargo:token
as a meaningless piece of boilerplate for a version or two.basic
, will need to follow up on that. Still have some time since the major rewrite isn't even in nightly, yet.2023-07-18
Cargo.lock
cargo update
?cargo update
was read-only testing. People using read-only testing (like containers) likely already have bins or Cargo.lock.cargo generate-lockfile
"debuginfo":"line-tables-only"
changed type from integer to integer|string in artifact messages.cargo metadata
.2023-07-11
cargo publish
/cargo package
not as important for scripts; similar importance level to workspaces[lib]
, not just a bin. Essentially a single-file package you can use as a dependency.build.rs
, then perhaps you just need a full package in that case (although it would be nice to reduce the situations wherebuild.rs
is needed in the first place).build.rs
, supporting some form of embeddedCargo.lock
is desired to support reproducible dependencies (similar to the motivation forcargo install --locked
)<script>.lock
can be a little ambiguous, because how would cargo know if it should drop a<script>.lock
file separately in the same directory, or embedded in the file. And today the manifest can't explicitly specify the location ofCargo.lock
.build.rs
and multi-package but some talk about it on t-lang for reproducing more complex cases.rs
to invoke something as a script.Cargo.toml
file.python3 foo.py
to run an interpreted script.cargo install script.rs
and then it would be in their PATH to execute directly..cmd
) that call cargo.2023-07-04
Cancelled
2023-06-27
resolver
a string as well? Does that inform on this discussion?cargo new
unquoted in 2024, leave it quoted in 2021 to avoid any MSRV implication.cargo fix
, it shouldn't need to be typed?cargo fix
can fix the warning.cargo fmt
and notrustfmt
.cargo fmt
cargo fmt
would be needed for it.cargo fmt
fix it to be a string?profile.*.debug
?publish
which can be bool or array.[env]
table is a mapping to strings. This is suggesting adding arrays with inline tables.cargo metadata
to get that. Symlink target dir? Some other options in the RFC.2023-06-20
build
could still produce a summary but notrun
-Zconfig-include
include = { ... }
can work in the future).--config $PATH
.toml
extension.cargo/cache/
, that would collide with what the user specified. Restricting to.toml
extensions would avoid that since we won't make a directory named with a.toml
extension.*
?.toml
restriction, but otherwise just treat it as a path..toml
check.2023-06-13
cargo install
.cargo login
with a registry should only allow asymmetric or a credential provider.cargo install
.2023-06-06
r?
comment link to the documentation2023-05-30
doc
be opaque or markdown, etc.v
being updated is not good.config.json
could contain information about when differentv
values were stabilized.2023-05-23
dep:
in the features table.cfg(accessible)
cfg(accessible)
is limited to std-lib, at first=
since any change could be a breaking change.cargo update
).=
can be a little challenging due to creating a rigid lockfile.cargo config set
, for support, making it easier to explain to users how to set a config2023-05-16
cargo help --commands
— https://github.com/rust-lang/cargo/issues/12114cargo --list
?--list
.git help -a
, which lists all commands.cargo help
:git help -a
is different because its intention is that it is one of several flags for printing help topics, so suggesting it in "command not found" errors seems weirdcargo --list
flag--message=format=json
cargo list
subcommand, that can take various options for exactly how to return the outputcargo query
or whatevercargo metadata
cargo
state in there as well?git help -a
does, with a human-readable list of all things.git help -g
is separate for guides. Not sure why…cargo --list
. We can update our own shell completions, but not others (fish, for example). And are there other use-cases? And even if we provide a compatibility window, users still need to know that they need to update their completions.documentation
URL inCargo.toml
.documentation
field.credential-process = "foo {version} …"
{action}
was to keep the configuration simple.cargo-credential-shell
, which does essentially what the basic one does.2023-05-09
cargo new
knows how to create a new repo and write an ignore file.crate
cargo new
, dirty tracking, dependencies, etc.)cargo new
?src/tools/cargo
, which is a niche use for a small audience.2023-05-02
cargo clean
fails, why is this a problem?target/
can't be deleted--cfg
doc to check builds of dependencies as part ofcargo doc/rustdoc
: https://github.com/rust-lang/cargo/issues/8811--cfg test
which is only for the final itembuild.rs
problem for allcargo check
uses?--cfg doc
to build.rs- => _
recommended in the index?config.json
flag to indicate if the registry is normalized.QueryKind::Exact
being used?-
/_
.cargo
use[workspace.dependencies]
?cargo upgrade
takes care of thatcargo add
cargo add
wasn't reusing existing versions which would also go away with this (or we could have cargo add prefer existing versions)