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

WASM Automatic Demo Generator Proof of Concept #500

Merged
merged 453 commits into from
Jul 30, 2024

Conversation

ambiguousname
Copy link
Member

Copy link
Contributor

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. Code could be a bit more organized, evaluate_param is kinda large and clunky

tool/src/demo_gen/mod.rs Outdated Show resolved Hide resolved
tool/src/demo_gen/terminus.rs Show resolved Hide resolved
tool/src/demo_gen/terminus.rs Outdated Show resolved Hide resolved
tool/src/demo_gen/terminus.rs Outdated Show resolved Hide resolved
tool/src/demo_gen/terminus.rs Outdated Show resolved Hide resolved
tool/src/demo_gen/terminus.rs Outdated Show resolved Hide resolved
tool/src/demo_gen/terminus.rs Show resolved Hide resolved
@Manishearth
Copy link
Contributor

Fine to do all fixes in a followup.

@@ -44,7 +44,7 @@ const RESERVED: &[&str] = &[
];

/// Helper class for us to format JS identifiers from the HIR.
pub(super) struct JSFormatter<'tcx> {
pub struct JSFormatter<'tcx> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe?

Suggested change
pub struct JSFormatter<'tcx> {
pub(crate) struct JSFormatter<'tcx> {

@@ -15,13 +15,13 @@ use type_generation::TyGenContext;
mod layout;

/// Since the main difference between .mjs and .d.ts is typing, we just want a differentiator for our various helper functions as to what's being generated: .d.ts, or .mjs?
enum FileType {
pub enum FileType {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pub(crate)?

@ambiguousname ambiguousname merged commit 46aca85 into rust-diplomat:main Jul 30, 2024
15 checks passed
@ambiguousname ambiguousname deleted the wasm-demo-generator branch July 30, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants