GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: correct current Rust limitations (#1029) · jdx/usage@6792f6d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • derive/src
    • lib.rs
  • docs
    • rust
      • index.md
    • spec/integrations
      • clap.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎derive/src/lib.rs‎

Copy file name to clipboardExpand all lines: derive/src/lib.rs
+4-11Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -293,18 +293,11 @@
293293
//!
294294
//! A word is held as the bytes it arrived as and converted once, where the struct is built.
295295
//! So a value that is not valid UTF-8 is **reported** rather than quietly replaced with
296-
//! `U+FFFD` — which for a `PathBuf` meant a different file, silently. What is still missing
297-
//! is *accepting* such a value: recovering an `OsString` from those bytes needs
298-
//! `OsStr::from_encoded_bytes_unchecked`, which is `unsafe`, and this crate has none.
296+
//! `U+FFFD` — which for a `PathBuf` meant a different file, silently. On Unix, `PathBuf` and
297+
//! `OsString` fields accept the bytes exactly through the safe `OsStringExt::from_vec`; on
298+
//! Windows, a value that cannot be converted safely is reported rather than reconstructed with
299+
//! `OsString::from_encoded_bytes_unchecked`.
299300
//!
300-
//! # What this version does not do
301-
//!
302-
//! Published early on purpose, so it can be used and argued with — but these are
303-
//! real limits, not omissions from the docs.
304-
//!
305-
//! - **Flattening.** A struct cannot yet borrow another struct's flags, so a set of
306-
//! options shared by several commands has to be repeated.
307-
308301
use proc_macro::TokenStream;
309302
use syn::{parse_macro_input, DeriveInput};
310303

Collapse file

‎docs/rust/index.md‎

Copy file name to clipboardExpand all lines: docs/rust/index.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@ equivalent yet:
151151
- There is no per-field `value_parser`-style validation — values are built with `FromStr`, and a
152152
conversion failure becomes an `InvalidValue` error.
153153
- Prefix matching (`infer_long_args`) is suggested in error messages but never accepted.
154-
- Non-UTF-8 argv values are reported precisely in errors rather than lossily replaced, but cannot
155-
currently be _accepted_ into fields (the crates forbid the `unsafe` needed to reconstruct an
156-
`OsString`).
154+
- On Unix, `PathBuf` and `OsString` fields accept non-UTF-8 argv without changing a byte. String
155+
fields still report invalid UTF-8 precisely rather than replacing it; on Windows, values that
156+
cannot be converted safely are reported instead of using an unchecked reconstruction.
Collapse file

‎docs/spec/integrations/clap.md‎

Copy file name to clipboardExpand all lines: docs/spec/integrations/clap.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
```toml
88
[dependencies]
9-
clap_usage = "2"
9+
clap_usage = "5"
1010
```
1111

1212
## Quick Start

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.