Skip to content

Make sure it's possible to use style without depending on js. #9260

Closed

Description

@Ms2ger

The crate that defines DOMString needs to depend on js, because it has to implement FromJSConvertible and ToJSConvertible for use in script. However, style has to depend on DOMString for AttrValue. It might be possible to have a cargo feature so that util can implement those traits when used within Servo, but not Gecko.

CC @Manishearth @jdm @bholley

Activity

  1. added
    A-build
    on Jan 11, 2016
  2. asajeffrey commented on Jan 11, 2016

    @asajeffrey
    Contributor

    Rather than use a feature, we could keep DOMString in util, but move the conversions to/from JSString into script.

  3. bholley commented on Jan 12, 2016

    @bholley
    Contributor

    I think @Ms2ger's feature idea should work. Trying it out.

  4. added 3 commits that reference this issue on Jan 12, 2016
    50521b7
    3cb2255
    6beebd3
  5. Ms2ger commented on Jan 12, 2016

    @Ms2ger
    ContributorAuthor

    Rather than use a feature, we could keep DOMString in util, but move the conversions to/from JSString into script.

    FTR, we can't, because of orphan rules.

  6. asajeffrey commented on Jan 12, 2016

    @asajeffrey
    Contributor

    Good point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-buildA-platform/utils

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions