Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf0068a

Browse files
authored
Make component public (#983)
1 parente725b1f commitbf0068a

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

‎pgml-apps/cargo-pgml-components/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎pgml-apps/cargo-pgml-components/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name ="cargo-pgml-components"
3-
version ="0.1.12"
3+
version ="0.1.13"
44
edition ="2021"
55
authors = ["PostgresML <team@postgresml.org>"]
66
license ="MIT"

‎pgml-apps/cargo-pgml-components/src/components/component.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub struct Component {
1010
pubvalue:String,
1111
}
1212

13+
#[macro_export]
1314
macro_rules! component{
1415
($name:tt) =>{
1516
implFrom<$name>forcrate::components::Component{
@@ -36,7 +37,8 @@ macro_rules! component {
3637
};
3738
}
3839

39-
pub(crate)use component;
40+
41+
pubuse component;
4042

4143
// Render any string.
4244
implFrom<&str>forComponent{

‎pgml-apps/cargo-pgml-components/src/frontend/templates/mod.rs.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// You shouldn't modify it manually.
33

44
<% if root{%>
5-
mod component;
6-
pub(crate) use component::{component, Component};
5+
pubmod component;
6+
pub use component::{component, Component};
77
<% } %>
88
<% for component in modules.iter(){%>
99
//<%= component.full_path()%>

‎pgml-dashboard/src/components/component.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub struct Component {
1010
pubvalue:String,
1111
}
1212

13+
#[macro_export]
1314
macro_rules! component{
1415
($name:tt) =>{
1516
implFrom<$name>forcrate::components::Component{
@@ -36,7 +37,8 @@ macro_rules! component {
3637
};
3738
}
3839

39-
pub(crate)use component;
40+
41+
pubuse component;
4042

4143
// Render any string.
4244
implFrom<&str>forComponent{

‎pgml-dashboard/src/components/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This file is automatically generated.
22
// You shouldn't modify it manually.
33

4-
mod component;
5-
pub(crate)use component::{component,Component};
4+
pubmod component;
5+
pubuse component::{component,Component};
66

77
// src/components/breadcrumbs
88
pubmod breadcrumbs;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp