Docs.rs
  • sass-embedded-0.7.1
    • sass-embedded 0.7.1
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • ahabhgk
    • Dependencies
      • atty ^0.2 normal
      • crossbeam-channel ^0.5 normal
      • dashmap ^5 normal
      • parking_lot ^0.12 normal
      • prost ^0.11 normal
      • regex ^1 normal optional
      • rustc-hash ^1 normal
      • serde ^1 normal optional
      • serde_json ^1 normal optional
      • url ^2 normal
      • urlencoding ^2 normal optional
      • criterion ^0.4 dev
      • gag ^1 dev
      • pathdiff ^0.2 dev
      • serde_json ^1 dev
      • tempfile ^3 dev
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate sass_embedded

sass_embedded0.7.1

  • All Items

Sections

  • features

Crate Items

  • Re-exports
  • Modules
  • Structs
  • Enums
  • Traits
  • Type Aliases

Crates

  • sass_embedded

Crate sass_embedded

Source
Expand description

A Rust library that will communicate with Embedded Dart Sass using the Embedded Sass protocol

use sass_embedded::{Sass, StringOptions};

let mut sass = Sass::new("path/to/sass_embedded").unwrap();
let res = sass.compile_string("a {b: c}", StringOptions::default()).unwrap();
println!("{:?}", res);

§features

  • legacy: support for sass’s legacy APIs

Re-exports§

pub use url;

Modules§

legacy
Support for “legacy” features.

Structs§

CompileResult
More information: Sass documentation
Embedded
The sass-embedded compiler for rust host.
Exception
An exception for this crate, thrown because a Sass compilation failed or io::Error.
ImporterOptions
Options for Importer::canonicalize or Importer::load.
ImporterResult
More information: Sass documentation
LoggerDebugOptions
Options for Logger::debug.
LoggerWarnOptions
Options for Logger::warn.
Options
Options that can be passed to [Sass::compile].
OptionsBuilder
A builder for Options.
Sass
The sass-embedded compiler for rust host.
Silent
A Logger that silently ignores all warnings and debug messages.
SourceSpan
More information: Sass documentation
StringOptions
Options that can be passed to [Sass::compile_string].
StringOptionsBuilder
A builder for StringOptions.
Url
A parsed URL record.

Enums§

OutputStyle
More information: Sass documentation
SassImporter
Enum wrapper for BoxImporter and BoxFileImporter.
Syntax
More information: Sass documentation

Traits§

FileImporter
More information: Sass documentation
Importer
More information: Sass documentation
Logger
More information: Sass documentation

Type Aliases§

BoxFileImporter
A type alias for Box.
BoxImporter
A type alias for Box.
BoxLogger
A type alias for Box.
Result
An alias for std::result::Result<T, Exception>.

Results

Settings
Help
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
    method
    sass_embedded::Url::parse
    &str -> Result<Url, ParseError>
    Parse an absolute URL from a string.
    method
    sass_embedded::Url::from_str
    &str -> Result<Url, ParseError>
    method
    sass_embedded::Url::join
    &Url, &str -> Result<Url, ParseError>
    Parse a string as an URL, with this URL as the base URL.
    method
    sass_embedded::Url::parse_with_params
    &str, I -> Result<Url, ParseError>
    Parse an absolute URL from a string and add params to its …
    method
    sass_embedded::Url::set_host
    &mut Url, Option<&str> -> Result<(), ParseError>
    Change this URL’s host.