wit-parser 0.247.0

Tooling for parsing `*.wit` files and working with their contents.
Documentation
{
  "worlds": [
    {
      "name": "the-world",
      "imports": {
        "interface-0": {
          "interface": {
            "id": 0
          }
        },
        "interface-1": {
          "interface": {
            "id": 1
          }
        },
        "interface-2": {
          "interface": {
            "id": 2
          }
        },
        "a": {
          "function": {
            "name": "a",
            "kind": "freestanding",
            "params": []
          }
        }
      },
      "exports": {},
      "package": 0
    }
  ],
  "interfaces": [
    {
      "name": "shared-items",
      "types": {
        "foo": 0
      },
      "functions": {},
      "package": 0
    },
    {
      "name": "i1",
      "types": {
        "foo": 1
      },
      "functions": {
        "a": {
          "name": "a",
          "kind": "freestanding",
          "params": [],
          "result": 1
        }
      },
      "package": 0
    },
    {
      "name": "i2",
      "types": {
        "foo": 2
      },
      "functions": {
        "a": {
          "name": "a",
          "kind": "freestanding",
          "params": [],
          "result": 2
        }
      },
      "package": 0
    }
  ],
  "types": [
    {
      "name": "foo",
      "kind": {
        "type": "u32"
      },
      "owner": {
        "interface": 0
      }
    },
    {
      "name": "foo",
      "kind": {
        "type": 0
      },
      "owner": {
        "interface": 1
      }
    },
    {
      "name": "foo",
      "kind": {
        "type": 0
      },
      "owner": {
        "interface": 2
      }
    }
  ],
  "packages": [
    {
      "name": "foo:foo",
      "interfaces": {
        "shared-items": 0,
        "i1": 1,
        "i2": 2
      },
      "worlds": {
        "the-world": 0
      }
    }
  ]
}