Skip to content

re-export DefaultHostSystem#590

Merged
nekevss merged 1 commit intoboa-dev:mainfrom
Sharktheone:default-host-system-reexport
Sep 25, 2025
Merged

re-export DefaultHostSystem#590
nekevss merged 1 commit intoboa-dev:mainfrom
Sharktheone:default-host-system-reexport

Conversation

@Sharktheone
Copy link
Copy Markdown
Contributor

In Temporal::now a type Now<DefaultHostSystem> is returned. However, the DefaultHostSystem is not accessible from the outside, making it impossible to use it as a type.
I've also re-exported the EmptyHostSystem, where I'm not 100% sure if it should be, but I believe it is correct to do so.

@Sharktheone Sharktheone force-pushed the default-host-system-reexport branch from 33d551f to 0e297dc Compare September 24, 2025 09:11
Copy link
Copy Markdown
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

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

Thanks! Just to confirm, is this for access to the default host system implementation without the sys flag?

Had one issue with re-exporting the EmptyHostSystem, but I think I'm fine with exporting the DefaultHostSystem.

Comment thread src/lib.rs Outdated


#[doc(inline)]
pub use host::EmptyHostSystem;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

issue: we should not to export this type.

It's mostly meant as a test type for documentation purposes. Even more so, it definitely shouldn't be in the lib re-export

@Sharktheone Sharktheone force-pushed the default-host-system-reexport branch from 0e297dc to ba90324 Compare September 25, 2025 06:11
@Sharktheone
Copy link
Copy Markdown
Contributor Author

Thanks! Just to confirm, is this for access to the default host system implementation without the sys flag?

It's re-exporting the DefaultHostSystem when the sys flag is enabled

Copy link
Copy Markdown
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

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

just needs a cargo fmt and it should be good to go

@Sharktheone Sharktheone force-pushed the default-host-system-reexport branch from ba90324 to 170f828 Compare September 25, 2025 17:21
@nekevss
Copy link
Copy Markdown
Member

nekevss commented Sep 25, 2025

Thanks!

@nekevss nekevss merged commit a36c2b6 into boa-dev:main Sep 25, 2025
8 checks passed
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.

2 participants