This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathcodegen.toml
74 lines (57 loc) · 2.27 KB
/
codegen.toml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# codegen.toml
# `models` contains a list of smithy model file(s),
# and folder(s) containing .smithy files, used for input to code generators,
# documentation generator, and linting and validation.
# Dependencies of the model should also be included in the `models` list
# because they will improve documentation and validation.
#
# The namespaces(s) that will be generated for this library are indicated
# in the per-language file settings later in this file.
[[models]]
path = "."
files = [ "cron.smithy" ]
[[models]]
# Location of dependencies may be either a path to a directory, or a url prefix
# If a relative path is used, it is relative to the location of this codegen.toml
#path = "/path/to/my-interfaces"
url = "https://wasmcloud.github.io/interfaces/idl/org.wasmcloud"
files = [ "wasmcloud-core.smithy", "wasmcloud-model.smithy" ]
##
## HTML documentation output
##
[html]
# (optional) template dir to scan (overrides compiled-in templates)
#templates = "docgen/templates"
# Top-level output directory for html generated files
output_dir = "html"
# Additional parameters for html generation
[html.parameters]
# name of template for page generation (default: 'namespace_doc')
#doc_template = "namespace_doc"
# whether to use minified tailwind.css (default false)
minified = true
##
## Rust language output
##
[rust]
# top-level output directory for rust files.
output_dir = "rust"
[rust.parameters]
# File-specific settings contain the following settings
# [[rust.files]]
# path - (required) path for generated output file, relative to output_dir above
# hbs - handlebars template name (without .hbs extension)
# Only applicable if file is generated by a handlebars template
# create_only - whether file should be generated only with --create (default false)
# namespace - limit generated shapes to shapes in this namespace
# * - any other fields are per-file parameters passed to codegen and renderer
# Additional namespaces may be added to this library crate by adding
# a rust source file below for each namespace,
# and importing each of them into src/lib.rs
[[rust.files]]
path = "src/cron.rs"
namespace = "org.wasmcloud.example.cron"
[tinygo]
output_dir = "tinygo"
formatter = [ "goimports", "-w" ]
files = [ { path = "cron.go", package = "cron", namespace = "org.wasmcloud.example.cron"}]