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

feat!: add a way to specify a plugin name #32

Merged
merged 12 commits into from
Aug 29, 2023

Conversation

Suyashtnt
Copy link
Contributor

This refactors the config option to allow for custom plugin names for people who want to use this tool with a plugin

BREAKING: This completely changes the configuration Struct into a custom one

This also adds a flake.nix with a devshell for NixOS users. Not sure if that should also be in this PR

This refactors the config option to allow for custom plugin names for people who want to use this tool with a plugin

BREAKING: This completely changes the configuration Struct into a custom one
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/ts.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@oscartbeaumont oscartbeaumont left a comment

Choose a reason for hiding this comment

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

Thanks heaps for this PR!

Have left some comments which should be pretty easy to resolve and then we can ship this to the v2 branch.

I would also prefer if the nix stuff isn't committed to the repo.

@oscartbeaumont oscartbeaumont linked an issue Aug 29, 2023 that may be closed by this pull request
@Suyashtnt
Copy link
Contributor Author

I would also prefer if the nix stuff isn't committed to the repo.

Should I rather add that in a seperate PR? Once LGTM you can remove the flake.nix, flake.lock, and .envrc files along with the .direnv/ entry in the gitignore

Added methods for changing the plugin name and specta config
…ring

For consistency and to allow non-heap-allocated strings
@oscartbeaumont
Copy link
Member

I would rather just remove the Nix-related files before merging this PR! Nix is very cool but I don't use it and from my understanding, it isn't used widely enough for it to be worth adding extra clutter to the root of the repo.

@Suyashtnt
Copy link
Contributor Author

I would rather just remove the Nix-related files before merging this PR! Nix is very cool but I don't use it and from my understanding, it isn't used widely enough for it to be worth adding extra clutter to the root of the repo.

What I meant is remove the files before the merge but first make sure the rest is alright.

Copy link
Member

@oscartbeaumont oscartbeaumont left a comment

Choose a reason for hiding this comment

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

Thanks for the changes but left a few more comments.

Sorry, I misread your last message. Happy to keep the Nix stuff until the PR is ready to merge!

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@oscartbeaumont oscartbeaumont left a comment

Choose a reason for hiding this comment

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

Thanks for all the fixes. Just that one more fix and it should be good.

src/ts.rs Outdated Show resolved Hide resolved
@oscartbeaumont
Copy link
Member

Remove the nix files and I am happy to merge this into the v2 branch.

I am going to hold off doing a release until I finish some more work on Specta's next release candidate and release it. You should be able to safely lock to a Git commit for now, but be aware you will want to use specta = "=2.0.0-rc.1" in your project when using the tauri_specta v2 branch.

@oscartbeaumont
Copy link
Member

Thanks heaps for your contribution. This has come up before and is very needed feature!

@oscartbeaumont oscartbeaumont merged commit 8f45e37 into specta-rs:v2 Aug 29, 2023
4 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.

Allow exporting commands within Tauri Plugin
2 participants