From b2eb96963c26717d5bfe43b437bc56541ae88bcf Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 5 Jan 2020 12:45:51 -0500 Subject: [PATCH] Refactor css serialization into separate file --- src/css.rs | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/main.rs | 92 ++------------------------------------------------- 2 files changed, 96 insertions(+), 90 deletions(-) create mode 100644 src/css.rs diff --git a/src/css.rs b/src/css.rs new file mode 100644 index 0000000..b9dd41f --- /dev/null +++ b/src/css.rs @@ -0,0 +1,94 @@ +//! # Convert from SCSS AST to CSS +use std::io; +use crate::{Selector, Style, StyleSheet, Stmt, RuleSet}; + + +#[derive(Debug, Clone)] +pub struct Block { + selector: Selector, + styles: Vec