Skip to content

Create a CustomError derive macro #63

@FL03

Description

@FL03
extern crate scsys;

use scsys::CustomError;

#[derive(Debug, CustomError)]
pub enum CustomError {
    Sample(String),
}

Should generate the following code

impl core
impl std::error::Error for CustomError {}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmacroAny additions or improvements to procedural macrosrustImprovements or additions that update the Rust code

Type

No type

Projects

Status

👀 In review

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions