Skip to content

custom plugin example #73

custom plugin example

custom plugin example #73

Triggered via pull request September 12, 2023 04:54
Status Failure
Total duration 3m 2s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 1 warning
the size for values of type `[event::EventDataType]` cannot be known at compilation time: src/lib.rs#L403
error[E0277]: the size for values of type `[event::EventDataType]` cannot be known at compilation time --> src/lib.rs:403:20 | 403 | &events?, | ^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `[event::EventDataType]` note: required by a bound in `std::ops::ControlFlow::Break` --> /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/control_flow.rs:93:5
the size for values of type `[event::EventDataType]` cannot be known at compilation time: src/lib.rs#L403
error[E0277]: the size for values of type `[event::EventDataType]` cannot be known at compilation time --> src/lib.rs:403:14 | 403 | &events?, | ^^^^^^^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `[event::EventDataType]` = note: all local variables must have a statically known size = help: unsized locals are gated as an unstable feature
the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time: src/lib.rs#L397
error[E0277]: the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time --> src/lib.rs:397:45 | 397 | let (commands, commands_type_map) = macro_data?; | ^^^^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `[specta::functions::FunctionDataType]` = note: only the last element of a tuple may have a dynamically sized type
the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time: src/lib.rs#L397
error[E0277]: the size for values of type `[specta::functions::FunctionDataType]` cannot be known at compilation time --> src/lib.rs:397:14 | 397 | let (commands, commands_type_map) = macro_data?; | ^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `[specta::functions::FunctionDataType]` = note: all local variables must have a statically known size = help: unsized locals are gated as an unstable feature
cannot find type `ExportError` in crate `specta`: src/event.rs#L222
error[E0412]: cannot find type `ExportError` in crate `specta` --> src/event.rs:222:40 | 222 | Result<Vec<EventDataType>, specta::ExportError>, | ^^^^^^^^^^^ not found in `specta`
cannot find function `named_datatype` in module `ts`: src/js.rs#L112
error[E0425]: cannot find function `named_datatype` in module `ts` --> src/js.rs:112:21 | 112 | ts::named_datatype(&cfg.inner, v, type_map).map(|typ| { | ^^^^^^^^^^^^^^ help: a function with a similar name exists: `enum_datatype` | ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/specta-2.0.0-rc.2/src/lang/ts/mod.rs:373:1 | 373 | fn enum_datatype(ctx: ExportContext, e: &EnumType, type_map: &TypeMap) -> Output { | -------------------------------------------------------------------------------- similarly named function `enum_datatype` defined here
unresolved import `specta::ExportError`: src/lib.rs#L103
error[E0432]: unresolved import `specta::ExportError` --> src/lib.rs:103:62 | 103 | use specta::{functions::FunctionDataType, ts::TsExportError, ExportError, TypeMap}; | ^^^^^^^^^^^ no `ExportError` in the root
clippy
Clippy had exited with the 101 exit code
build (macos-latest)
Process completed with exit code 101.
build (windows-latest)
The job was canceled because "macos-latest" failed.
build (windows-latest)
The operation was canceled.
build (ubuntu-latest)
The job was canceled because "macos-latest" failed.
build (ubuntu-latest)
The operation was canceled.
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/