Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除 serde_type 模块,利用 cfg_attr 设置 serde 相关内容 #12

Closed
zjp-CN opened this issue Oct 14, 2021 · 1 comment
Closed
Labels
refactor 重构 rustdx rustdx 库相关

Comments

@zjp-CN
Copy link
Owner

zjp-CN commented Oct 14, 2021

例子来源:pulldown-cmark

#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum Tag<'a> {
    #[cfg_attr(feature = "serde", serde(borrow))]
    FootnoteDefinition(CowStr<'a>)
}
@zjp-CN zjp-CN added rustdx rustdx 库相关 refactor 重构 labels Oct 14, 2021
zjp-CN added a commit that referenced this issue Oct 14, 2021
@zjp-CN
Copy link
Owner Author

zjp-CN commented Oct 14, 2021

serde_type::day 移入 tests/file-day.rs,且增加 csv 测试样例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor 重构 rustdx rustdx 库相关
Projects
None yet
Development

No branches or pull requests

1 participant