Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ class RustWriter private constructor(
private val commentCharacter: String = "//",
private val printWarning: Boolean = true,
/** Insert comments indicating where code was generated */
val debugMode: Boolean = false,
val debugMode: Boolean = true,
/** When true, automatically change all dependencies to be in the test scope */
val devDependenciesOnly: Boolean = false,
) :
Expand Down Expand Up @@ -665,7 +665,7 @@ class RustWriter private constructor(
location.first { it.isRelevant() }?.let { "/* ${it.fileName}:${it.lineNumber} */" }
?.also { super.writeInline(it) }
}

// super.enableStackTraceComments(true)
return super.write(content, *args)
}

Expand Down Expand Up @@ -844,6 +844,7 @@ class RustWriter private constructor(
}
}
}

else ->
rustBlock("") {
block(variable)
Expand Down
Loading