diff options
Diffstat (limited to 'cli/npm/semver/mod.rs')
-rw-r--r-- | cli/npm/semver/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/npm/semver/mod.rs b/cli/npm/semver/mod.rs index 53f0f199f..dd6ca03db 100644 --- a/cli/npm/semver/mod.rs +++ b/cli/npm/semver/mod.rs @@ -6,6 +6,8 @@ use std::fmt; use deno_core::anyhow::Context; use deno_core::error::AnyError; use monch::*; +use serde::Deserialize; +use serde::Serialize; use crate::npm::resolution::NpmVersionMatcher; @@ -25,7 +27,9 @@ mod specifier; // A lot of the below is a re-implementation of parts of https://github.com/npm/node-semver // which is Copyright (c) Isaac Z. Schlueter and Contributors (ISC License) -#[derive(Clone, Debug, PartialEq, Eq, Default, Hash)] +#[derive( + Clone, Debug, PartialEq, Eq, Default, Hash, Serialize, Deserialize, +)] pub struct NpmVersion { pub major: u64, pub minor: u64, |