mirror of
https://github.com/extism/extism.git
synced 2026-01-09 13:57:55 -05:00
closes #661. - [x] docs - [x] tests - [x] depend on `extism-convert/extism-pdk-path` feature in https://github.com/extism/rust-pdk https://github.com/extism/rust-pdk/pull/47
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
error: encoding needs to be specified
|
|
|
|
= try: `#[encoding(ToJson)]`
|
|
--> tests/ui/invalid-encoding.rs:3:10
|
|
|
|
|
3 | #[derive(ToBytes)]
|
|
| ^^^^^^^
|
|
|
|
|
= note: this error originates in the derive macro `ToBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected attribute arguments in parentheses: #[encoding(...)]
|
|
|
|
= note: expects a path
|
|
= try: `#[encoding(ToJson)]`
|
|
--> tests/ui/invalid-encoding.rs:7:3
|
|
|
|
|
7 | #[encoding]
|
|
| ^^^^^^^^
|
|
|
|
error: expected parentheses: #[encoding(...)]
|
|
|
|
= note: expects a path
|
|
= try: `#[encoding(ToJson)]`
|
|
--> tests/ui/invalid-encoding.rs:11:12
|
|
|
|
|
11 | #[encoding = "string"]
|
|
| ^
|
|
|
|
error: unexpected token
|
|
|
|
= note: expects a path
|
|
= try: `#[encoding(ToJson)]`
|
|
--> tests/ui/invalid-encoding.rs:15:21
|
|
|
|
|
15 | #[encoding(something, else)]
|
|
| ^
|
|
|
|
error: only one encoding can be specified
|
|
|
|
= try: remove `#[encoding(Encodings)]`
|
|
--> tests/ui/invalid-encoding.rs:20:1
|
|
|
|
|
20 | #[encoding(Encodings)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|