Improve fs::PathToString documentation
This commit is contained in:
1 parent
7f0f853373
commit
9b575f1c73
3 files changed
+34
-21
No files matched your search
@@ -1254,6 +1254,12 @@ A few guidelines for introducing and reviewing new RPC interfaces:
|
||||
|
||||
- *Rationale*: User-facing consistency.
|
||||
|
||||
- Use `fs::path::u8string()` and `fs::u8path()` functions when converting path
|
||||
to JSON strings, not `fs::PathToString` and `fs::PathFromString`
|
||||
|
||||
- *Rationale*: JSON strings are Unicode strings, not byte strings, and
|
||||
RFC8259 requires JSON to be encoded as UTF-8.
|
||||
|
||||
Internal interface guidelines
|
||||
-----------------------------
|
||||
|
||||
|
||||
Reference in new issue
Block a user