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

Create the web-sys crate mechanically from WebIDL #409

Merged
merged 42 commits into from
Jul 9, 2018

Commits on Jul 6, 2018

  1. Create a new web-sys crate

    This will eventually contain all the WebIDL-generated bindings to Web APIs.
    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    0b3c2c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    248d233 View commit details
    Browse the repository at this point in the history
  3. web-sys: Add a small README

    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    f591478 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    40239d3 View commit details
    Browse the repository at this point in the history
  5. backend: Add a pass to remove AST items that use undefined imports

    This is necessary for the WebIDL frontend, which can't translate many WebIDL
    constructs into equivalent wasm-bindgen AST things yet. It lets us make
    incremental progress: we can generate bindings to methods we can support right
    now even though there might be methods on the same interface that we can't
    support yet.
    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    6d26828 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8005a89 View commit details
    Browse the repository at this point in the history
  7. webidl: Make parsing private

    It was only `pub` so that we could test it, but we ended up moving towards
    integration tests rather than unit tests that assert particular ASTs are parsed
    from WebIDL files.
    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    c55e1c5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2d552a1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d432b5b View commit details
    Browse the repository at this point in the history
  10. test-project-builder: Detect when webpack-dev-server fails

    Instead of going into an infinite loop, detect when webpack-dev-server fails to
    start up and early exit the test.
    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    43a740a View commit details
    Browse the repository at this point in the history
  11. webidl: Specify version for dev-dependency on wasm-bindgen-backend

    Instead of only a relative path.
    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    af2aa4f View commit details
    Browse the repository at this point in the history
  12. test-project-builder: Build projects in "very verbose" mode

    This helps for debugging failing WebIDL-related tests.
    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    71ec407 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    efee676 View commit details
    Browse the repository at this point in the history
  14. WIP enable Event.webidl

    Still need to fix and finish the test.
    fitzgen committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    13c93c4 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2018

  1. Configuration menu
    Copy the full SHA
    6c3ed64 View commit details
    Browse the repository at this point in the history
  2. Start out a test's status as incomplete

    That way if we don't fill it in the error message doesn't look quite so bizarre
    alexcrichton committed Jul 7, 2018
    Configuration menu
    Copy the full SHA
    5f671f8 View commit details
    Browse the repository at this point in the history
  3. Fix onerror function in headless mode

    Otherwise we don't see any output!
    alexcrichton committed Jul 7, 2018
    Configuration menu
    Copy the full SHA
    455c102 View commit details
    Browse the repository at this point in the history
  4. Fix package.json/node_modules handling in project generation

    Make sure these are looked up in the git project root rather than the crate root
    alexcrichton committed Jul 7, 2018
    Configuration menu
    Copy the full SHA
    a79dd3c View commit details
    Browse the repository at this point in the history
  5. Avoid logging body text

    This was meant for debugging and is otherwise pretty noisy
    alexcrichton committed Jul 7, 2018
    Configuration menu
    Copy the full SHA
    94529ae View commit details
    Browse the repository at this point in the history
  6. Fix a relative path

    alexcrichton committed Jul 7, 2018
    Configuration menu
    Copy the full SHA
    b4f0fb5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cff9559 View commit details
    Browse the repository at this point in the history
  8. Fix a typo

    alexcrichton committed Jul 7, 2018
    Configuration menu
    Copy the full SHA
    ecf6bdd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    384a983 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2018

  1. Configuration menu
    Copy the full SHA
    c43d740 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3266ced View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16ea94c View commit details
    Browse the repository at this point in the history
  4. test-project-builder: Print generated WebIDL bindings for debugging p…

    …urposes
    
    Helps debug bad WebIDL bindings generation inside tests.
    fitzgen committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    4040020 View commit details
    Browse the repository at this point in the history
  5. When we can't find a descriptor, say which one can't be found

    This helps when debugging things that need to become structural.
    fitzgen committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    882183b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    126207d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c992343 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    68478c6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5d7fdea View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6bfeab5 View commit details
    Browse the repository at this point in the history
  11. test-project-builder: Don't panic on poisoned headless test mutex

    We only use it to serialize headless tests so that we don't try to bind the port
    concurrently. Its OK to run another headless test if an earlier one panicked.
    fitzgen committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    bc06137 View commit details
    Browse the repository at this point in the history
  12. JsValue: Add {is,as}_{object,function} methods

    Allows dynamically casting values to `js::Object` and `js::Function`.
    fitzgen committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    f7bb74d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ae3b610 View commit details
    Browse the repository at this point in the history
  14. Allow for dynamic feature detection of methods

    If we create bindings to a method that doesn't exist in this implementation,
    then it shouldn't fail until if/when we actually try and invoke that missing
    method.
    fitzgen committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    05d9eb8 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    834bfad View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    8bc01f4 View commit details
    Browse the repository at this point in the history
  17. Add JsValue::{is_string, as_js_string} methods

    And document all the cast/convert/check methods for js value.
    fitzgen committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    4076f4f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    eeebca9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0a5a50b View commit details
    Browse the repository at this point in the history