mirror of
https://github.com/typst/typst
synced 2025-07-28 14:57:54 +08:00
Compare commits
2 Commits
409f2f5f09
...
4fc4f87cdb
Author | SHA1 | Date | |
---|---|---|---|
|
4fc4f87cdb | ||
|
c9cf6bab92 |
@ -143,7 +143,7 @@ pub struct PackageInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl PackageManifest {
|
impl PackageManifest {
|
||||||
/// Create a new package manifest with the given info.
|
/// Create a new package manifest with the given package info.
|
||||||
pub fn new(package: PackageInfo) -> Self {
|
pub fn new(package: PackageInfo) -> Self {
|
||||||
PackageManifest {
|
PackageManifest {
|
||||||
package,
|
package,
|
||||||
@ -184,7 +184,7 @@ impl PackageManifest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl TemplateInfo {
|
impl TemplateInfo {
|
||||||
/// Create a new template info with only required content.
|
/// Create a new template info with only required fields.
|
||||||
pub fn new(path: impl Into<EcoString>, entrypoint: impl Into<EcoString>) -> Self {
|
pub fn new(path: impl Into<EcoString>, entrypoint: impl Into<EcoString>) -> Self {
|
||||||
TemplateInfo {
|
TemplateInfo {
|
||||||
path: path.into(),
|
path: path.into(),
|
||||||
@ -196,7 +196,7 @@ impl TemplateInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl PackageInfo {
|
impl PackageInfo {
|
||||||
/// Create a new package info with only required content.
|
/// Create a new package info with only required fields.
|
||||||
pub fn new(
|
pub fn new(
|
||||||
name: impl Into<EcoString>,
|
name: impl Into<EcoString>,
|
||||||
version: PackageVersion,
|
version: PackageVersion,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user