This repository was archived by the owner on Dec 1, 2023. It is now read-only.
Commit e5a40e0
committed
unimplemented encode/decode implementations for wasm and other unknowns
The cfg() guards around the encode/decode implementations result in the
crate being unusable on wasm32-unknown-unknown or any non-unix
non-windows non-redox target.
These lines mark the functionality as unimplemented on those platforms
(which is a sane behavior for platforms like wasm or bare-metal
microprocessors given those have no file system), which makes the crate
as a whole usable again for file system unrelated tasks like encoding
using the "cbor" crate.1 parent 71b8d6e commit e5a40e0
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1371 | 1371 | | |
1372 | 1372 | | |
1373 | 1373 | | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1374 | 1378 | | |
1375 | 1379 | | |
1376 | 1380 | | |
| |||
1406 | 1410 | | |
1407 | 1411 | | |
1408 | 1412 | | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1409 | 1417 | | |
1410 | 1418 | | |
1411 | 1419 | | |
| |||
0 commit comments