File: conventions.wit

package info (click to toggle)
rust-wasmtime 26.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 48,492 kB
  • sloc: ansic: 4,003; sh: 561; javascript: 542; cpp: 254; asm: 175; ml: 96; makefile: 55
file content (39 lines) | stat: -rw-r--r-- 815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// hello 🐱 world
package foo:foo;

interface conventions {
  kebab-case: func();

  record ludicrous-speed {
    how-fast-are-you-going: u32,
    i-am-going-extremely-slow: u64,
  }

  foo: func(x: ludicrous-speed);
  %function-with-dashes: func();
  %function-with-no-weird-characters: func();

  apple: func();
  apple-pear: func();
  apple-pear-grape: func();
  a0: func();

  // Comment out identifiers that collide when mapped to snake_case, for now; see
  // https://github.com/WebAssembly/component-model/issues/118
  //APPLE: func()
  //APPLE-pear-GRAPE: func()
  //apple-PEAR-grape: func()

  is-XML: func();

  %explicit: func();
  %explicit-kebab: func();

  // Identifiers with the same name as keywords are quoted.
  %bool: func();
}

world the-world {
  import conventions;
  export conventions;
}