alexcrichton opened PR #1928 from c-api-docs
to main
:
This commit adds a bit of a skeleton of what it might look like to
document the C API. Today the C API has virtually zero documentation
because the upstream documentation does not exist and we haven't put a
ton of effort into documenting our own extensions. Given that this is
one of the main vectors we expect users to use Wasmtime, we should make
sure it's thoroughly documented!I've never really done much documentation generation of C myself before,
but I did a bit of searching and Doxygen seems reasonable proficient for
doing this. This commit sets up what it might look like for Doxygen to
be used for the C API. One nice feature of DOxygen is that we can
document the items inwasm.h
without actually modifyingwasm.h
. For
those purposes adoc-wasm.h
file was added here which is where we can
put Wasmtime-specific documentation aboutwasm.h
.There's quite a few functions in the C API so I didn't want to get them
all done before getting consensus on this. I've started some skeletons
of documentation for global types inwasm.h
and also confirmed that
documentation works for our ownwasmtime.h
and such header files. If
this looks good to everyone and it runs reasonable well on CI then I can
spend more time filling out the rest of the documentation.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
It's worth pointing out that I generated this file with
doxygen -f doxygen.conf
. I've tweaked a number of settings internally but I'm hoping that most of this file can basically be ignored.
alexcrichton updated PR #1928 from c-api-docs
to main
:
This commit adds a bit of a skeleton of what it might look like to
document the C API. Today the C API has virtually zero documentation
because the upstream documentation does not exist and we haven't put a
ton of effort into documenting our own extensions. Given that this is
one of the main vectors we expect users to use Wasmtime, we should make
sure it's thoroughly documented!I've never really done much documentation generation of C myself before,
but I did a bit of searching and Doxygen seems reasonable proficient for
doing this. This commit sets up what it might look like for Doxygen to
be used for the C API. One nice feature of DOxygen is that we can
document the items inwasm.h
without actually modifyingwasm.h
. For
those purposes adoc-wasm.h
file was added here which is where we can
put Wasmtime-specific documentation aboutwasm.h
.There's quite a few functions in the C API so I didn't want to get them
all done before getting consensus on this. I've started some skeletons
of documentation for global types inwasm.h
and also confirmed that
documentation works for our ownwasmtime.h
and such header files. If
this looks good to everyone and it runs reasonable well on CI then I can
spend more time filling out the rest of the documentation.
alexcrichton updated PR #1928 from c-api-docs
to main
:
This commit adds a bit of a skeleton of what it might look like to
document the C API. Today the C API has virtually zero documentation
because the upstream documentation does not exist and we haven't put a
ton of effort into documenting our own extensions. Given that this is
one of the main vectors we expect users to use Wasmtime, we should make
sure it's thoroughly documented!I've never really done much documentation generation of C myself before,
but I did a bit of searching and Doxygen seems reasonable proficient for
doing this. This commit sets up what it might look like for Doxygen to
be used for the C API. One nice feature of DOxygen is that we can
document the items inwasm.h
without actually modifyingwasm.h
. For
those purposes adoc-wasm.h
file was added here which is where we can
put Wasmtime-specific documentation aboutwasm.h
.There's quite a few functions in the C API so I didn't want to get them
all done before getting consensus on this. I've started some skeletons
of documentation for global types inwasm.h
and also confirmed that
documentation works for our ownwasmtime.h
and such header files. If
this looks good to everyone and it runs reasonable well on CI then I can
spend more time filling out the rest of the documentation.
alexcrichton updated PR #1928 from c-api-docs
to main
:
This commit adds a bit of a skeleton of what it might look like to
document the C API. Today the C API has virtually zero documentation
because the upstream documentation does not exist and we haven't put a
ton of effort into documenting our own extensions. Given that this is
one of the main vectors we expect users to use Wasmtime, we should make
sure it's thoroughly documented!I've never really done much documentation generation of C myself before,
but I did a bit of searching and Doxygen seems reasonable proficient for
doing this. This commit sets up what it might look like for Doxygen to
be used for the C API. One nice feature of DOxygen is that we can
document the items inwasm.h
without actually modifyingwasm.h
. For
those purposes adoc-wasm.h
file was added here which is where we can
put Wasmtime-specific documentation aboutwasm.h
.There's quite a few functions in the C API so I didn't want to get them
all done before getting consensus on this. I've started some skeletons
of documentation for global types inwasm.h
and also confirmed that
documentation works for our ownwasmtime.h
and such header files. If
this looks good to everyone and it runs reasonable well on CI then I can
spend more time filling out the rest of the documentation.
alexcrichton updated PR #1928 from c-api-docs
to main
:
This commit adds a bit of a skeleton of what it might look like to
document the C API. Today the C API has virtually zero documentation
because the upstream documentation does not exist and we haven't put a
ton of effort into documenting our own extensions. Given that this is
one of the main vectors we expect users to use Wasmtime, we should make
sure it's thoroughly documented!I've never really done much documentation generation of C myself before,
but I did a bit of searching and Doxygen seems reasonable proficient for
doing this. This commit sets up what it might look like for Doxygen to
be used for the C API. One nice feature of DOxygen is that we can
document the items inwasm.h
without actually modifyingwasm.h
. For
those purposes adoc-wasm.h
file was added here which is where we can
put Wasmtime-specific documentation aboutwasm.h
.There's quite a few functions in the C API so I didn't want to get them
all done before getting consensus on this. I've started some skeletons
of documentation for global types inwasm.h
and also confirmed that
documentation works for our ownwasmtime.h
and such header files. If
this looks good to everyone and it runs reasonable well on CI then I can
spend more time filling out the rest of the documentation.
alexcrichton updated PR #1928 from c-api-docs
to main
:
This commit adds a bit of a skeleton of what it might look like to
document the C API. Today the C API has virtually zero documentation
because the upstream documentation does not exist and we haven't put a
ton of effort into documenting our own extensions. Given that this is
one of the main vectors we expect users to use Wasmtime, we should make
sure it's thoroughly documented!I've never really done much documentation generation of C myself before,
but I did a bit of searching and Doxygen seems reasonable proficient for
doing this. This commit sets up what it might look like for Doxygen to
be used for the C API. One nice feature of DOxygen is that we can
document the items inwasm.h
without actually modifyingwasm.h
. For
those purposes adoc-wasm.h
file was added here which is where we can
put Wasmtime-specific documentation aboutwasm.h
.There's quite a few functions in the C API so I didn't want to get them
all done before getting consensus on this. I've started some skeletons
of documentation for global types inwasm.h
and also confirmed that
documentation works for our ownwasmtime.h
and such header files. If
this looks good to everyone and it runs reasonable well on CI then I can
spend more time filling out the rest of the documentation.
alexcrichton updated PR #1928 from c-api-docs
to main
:
This commit adds a bit of a skeleton of what it might look like to
document the C API. Today the C API has virtually zero documentation
because the upstream documentation does not exist and we haven't put a
ton of effort into documenting our own extensions. Given that this is
one of the main vectors we expect users to use Wasmtime, we should make
sure it's thoroughly documented!I've never really done much documentation generation of C myself before,
but I did a bit of searching and Doxygen seems reasonable proficient for
doing this. This commit sets up what it might look like for Doxygen to
be used for the C API. One nice feature of DOxygen is that we can
document the items inwasm.h
without actually modifyingwasm.h
. For
those purposes adoc-wasm.h
file was added here which is where we can
put Wasmtime-specific documentation aboutwasm.h
.There's quite a few functions in the C API so I didn't want to get them
all done before getting consensus on this. I've started some skeletons
of documentation for global types inwasm.h
and also confirmed that
documentation works for our ownwasmtime.h
and such header files. If
this looks good to everyone and it runs reasonable well on CI then I can
spend more time filling out the rest of the documentation.
kubkon submitted PR Review.
alexcrichton merged PR #1928.
Last updated: Nov 22 2024 at 16:03 UTC