aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.idea/.gitignore2
-rw-r--r--.idea/runConfigurations/Run_Client.xml19
-rw-r--r--.idea/runConfigurations/Run_Server_Test.xml20
-rw-r--r--.idea/runConfigurations/Shell_Generate_Documents.xml17
-rw-r--r--.idea/runConfigurations/Shell_Initialize_Project.xml17
-rw-r--r--.idea/workspace.xml99
-rw-r--r--.init/generate_docs.bat8
-rw-r--r--client/Cargo.toml6
-rw-r--r--core/Cargo.toml6
-rw-r--r--core/server_test/Cargo.toml2
10 files changed, 184 insertions, 12 deletions
diff --git a/.idea/.gitignore b/.idea/.gitignore
index 13566b8..e72e028 100644
--- a/.idea/.gitignore
+++ b/.idea/.gitignore
@@ -1,6 +1,6 @@
# Default ignored files
/shelf/
-/workspace.xml
+# /workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
diff --git a/.idea/runConfigurations/Run_Client.xml b/.idea/runConfigurations/Run_Client.xml
new file mode 100644
index 0000000..82d712f
--- /dev/null
+++ b/.idea/runConfigurations/Run_Client.xml
@@ -0,0 +1,19 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="false" name="Run Client" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
+ <option name="command" value="run --package phantomlink-gamepad-client --bin phantomlink-gamepad-client" />
+ <option name="workingDirectory" value="file://$PROJECT_DIR$/client" />
+ <envs />
+ <option name="emulateTerminal" value="true" />
+ <option name="channel" value="DEFAULT" />
+ <option name="requiredFeatures" value="true" />
+ <option name="allFeatures" value="false" />
+ <option name="withSudo" value="false" />
+ <option name="buildTarget" value="REMOTE" />
+ <option name="backtrace" value="SHORT" />
+ <option name="isRedirectInput" value="false" />
+ <option name="redirectInputPath" value="" />
+ <method v="2">
+ <option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
+ </method>
+ </configuration>
+</component> \ No newline at end of file
diff --git a/.idea/runConfigurations/Run_Server_Test.xml b/.idea/runConfigurations/Run_Server_Test.xml
new file mode 100644
index 0000000..b3894fd
--- /dev/null
+++ b/.idea/runConfigurations/Run_Server_Test.xml
@@ -0,0 +1,20 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="false" name="Run Server Test" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
+ <option name="buildProfileId" value="dev" />
+ <option name="command" value="run --package phantomlink-server-test --bin phantomlink-server-test" />
+ <option name="workingDirectory" value="file://$PROJECT_DIR$/core/server_test" />
+ <envs />
+ <option name="emulateTerminal" value="true" />
+ <option name="channel" value="DEFAULT" />
+ <option name="requiredFeatures" value="true" />
+ <option name="allFeatures" value="false" />
+ <option name="withSudo" value="false" />
+ <option name="buildTarget" value="REMOTE" />
+ <option name="backtrace" value="SHORT" />
+ <option name="isRedirectInput" value="false" />
+ <option name="redirectInputPath" value="" />
+ <method v="2">
+ <option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
+ </method>
+ </configuration>
+</component> \ No newline at end of file
diff --git a/.idea/runConfigurations/Shell_Generate_Documents.xml b/.idea/runConfigurations/Shell_Generate_Documents.xml
new file mode 100644
index 0000000..414bd98
--- /dev/null
+++ b/.idea/runConfigurations/Shell_Generate_Documents.xml
@@ -0,0 +1,17 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="false" name="Shell Generate Documents" type="ShConfigurationType">
+ <option name="SCRIPT_TEXT" value="" />
+ <option name="INDEPENDENT_SCRIPT_PATH" value="false" />
+ <option name="SCRIPT_PATH" value="$PROJECT_DIR$/.init/generate_docs.bat" />
+ <option name="SCRIPT_OPTIONS" value="" />
+ <option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="false" />
+ <option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$/.init" />
+ <option name="INDEPENDENT_INTERPRETER_PATH" value="false" />
+ <option name="INTERPRETER_PATH" value="$PROJECT_DIR$/.init/generate_docs.bat" />
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="EXECUTE_IN_TERMINAL" value="true" />
+ <option name="EXECUTE_SCRIPT_FILE" value="true" />
+ <envs />
+ <method v="2" />
+ </configuration>
+</component> \ No newline at end of file
diff --git a/.idea/runConfigurations/Shell_Initialize_Project.xml b/.idea/runConfigurations/Shell_Initialize_Project.xml
new file mode 100644
index 0000000..f1339d5
--- /dev/null
+++ b/.idea/runConfigurations/Shell_Initialize_Project.xml
@@ -0,0 +1,17 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="false" name="Shell Initialize Project" type="ShConfigurationType">
+ <option name="SCRIPT_TEXT" value="" />
+ <option name="INDEPENDENT_SCRIPT_PATH" value="false" />
+ <option name="SCRIPT_PATH" value="$PROJECT_DIR$/.init/init_project.bat" />
+ <option name="SCRIPT_OPTIONS" value="" />
+ <option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="false" />
+ <option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$/.init" />
+ <option name="INDEPENDENT_INTERPRETER_PATH" value="false" />
+ <option name="INTERPRETER_PATH" value="$PROJECT_DIR$/.init/init_project.bat" />
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="EXECUTE_IN_TERMINAL" value="true" />
+ <option name="EXECUTE_SCRIPT_FILE" value="true" />
+ <envs />
+ <method v="2" />
+ </configuration>
+</component> \ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..8f955fe
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="AutoImportSettings">
+ <option name="autoReloadType" value="ALL" />
+ </component>
+ <component name="CargoProjects">
+ <cargoProject FILE="$PROJECT_DIR$/core/server_test/Cargo.toml" />
+ <cargoProject FILE="$PROJECT_DIR$/client/Cargo.toml" />
+ <cargoProject FILE="$PROJECT_DIR$/core/Cargo.toml" />
+ </component>
+ <component name="ChangeListManager">
+ <list default="true" id="43098f42-7a3b-4fc2-ad78-a08c96f7f5db" name="Changes" comment="修改作者所有权">
+ <change beforePath="$PROJECT_DIR$/.idea/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.gitignore" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/.init/generate_docs.bat" beforeDir="false" afterPath="$PROJECT_DIR$/.init/generate_docs.bat" afterDir="false" />
+ </list>
+ <option name="SHOW_DIALOG" value="false" />
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
+ <option name="LAST_RESOLUTION" value="IGNORE" />
+ </component>
+ <component name="ExecutionTargetManager" SELECTED_TARGET="RsBuildProfile:dev" />
+ <component name="MacroExpansionManager">
+ <option name="directoryName" value="EK7IzXE2" />
+ </component>
+ <component name="ProjectColorInfo"><![CDATA[{
+ "customColor": "",
+ "associatedIndex": 1
+}]]></component>
+ <component name="ProjectId" id="2vby3gKCsFT9WfRIRxaNtOUu2Bx" />
+ <component name="ProjectViewState">
+ <option name="hideEmptyMiddlePackages" value="true" />
+ <option name="showLibraryContents" value="true" />
+ </component>
+ <component name="PropertiesComponent"><![CDATA[{
+ "keyToString": {
+ "Attach to Node.js/Chrome.Unnamed.executor": "Debug",
+ "Cargo.Run phantomlink-gamepad-client.executor": "Run",
+ "Cargo.Run phantomlink-server-test.executor": "Run",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "RunOnceActivity.rust.reset.selective.auto.import": "true",
+ "Shell Script.Shell Generate Documents.executor": "Run",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "org.rust.cargo.project.model.PROJECT_DISCOVERY": "true",
+ "org.rust.cargo.project.model.impl.CargoExternalSystemProjectAware.subscribe.first.balloon": "",
+ "settings.editor.selected.configurable": "language.rust.build.tool.cargo",
+ "vue.rearranger.settings.migration": "true"
+ }
+}]]></component>
+ <component name="RunManager" selected="Shell Script.Shell Initialize Project">
+ <list>
+ <item itemvalue="Cargo.Run Server Test" />
+ <item itemvalue="Cargo.Run Client" />
+ <item itemvalue="Shell Script.Shell Initialize Project" />
+ <item itemvalue="Shell Script.Shell Generate Documents" />
+ </list>
+ <recent_temporary>
+ <list>
+ <item itemvalue="Cargo.Run Client" />
+ <item itemvalue="Cargo.Run Server Test" />
+ </list>
+ </recent_temporary>
+ </component>
+ <component name="RustProjectSettings">
+ <option name="toolchainHomeDirectory" value="$USER_HOME$/.cargo/bin" />
+ </component>
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
+ <component name="TaskManager">
+ <task active="true" id="Default" summary="Default task">
+ <changelist id="43098f42-7a3b-4fc2-ad78-a08c96f7f5db" name="Changes" comment="" />
+ <created>1744427871470</created>
+ <option name="number" value="Default" />
+ <option name="presentableId" value="Default" />
+ <updated>1744427871470</updated>
+ <workItem from="1744427873184" duration="1209000" />
+ </task>
+ <task id="LOCAL-00001" summary="修改作者所有权">
+ <option name="closed" value="true" />
+ <created>1744428015668</created>
+ <option name="number" value="00001" />
+ <option name="presentableId" value="LOCAL-00001" />
+ <option name="project" value="LOCAL" />
+ <updated>1744428015668</updated>
+ </task>
+ <option name="localTasksCounter" value="2" />
+ <servers />
+ </component>
+ <component name="TypeScriptGeneratedFilesManager">
+ <option name="version" value="3" />
+ </component>
+ <component name="VcsManagerConfiguration">
+ <MESSAGE value="修改作者所有权" />
+ <option name="LAST_COMMIT_MESSAGE" value="修改作者所有权" />
+ </component>
+</project> \ No newline at end of file
diff --git a/.init/generate_docs.bat b/.init/generate_docs.bat
index 3a74331..abd775f 100644
--- a/.init/generate_docs.bat
+++ b/.init/generate_docs.bat
@@ -13,8 +13,8 @@ if exist "%CORE_DOC%" rmdir /s /q "%CORE_DOC%"
:: 生成客户端文档
cd ..\client
cargo doc --no-deps
-if exist "target\doc" (
- move "target\doc" "%CLIENT_DOC%"
+if exist "..\shared\target\doc\phantomlink_gamepad_client" (
+ move "..\shared\target\doc\phantomlink_gamepad_client" "%CLIENT_DOC%"
echo [SUCCESS] Client docs moved to: %CLIENT_DOC%
) else (
echo [ERROR] Client docs generation failed
@@ -23,8 +23,8 @@ if exist "target\doc" (
:: 生成核心库文档
cd ..\core
cargo doc --no-deps
-if exist "target\doc" (
- move "target\doc" "%CORE_DOC%"
+if exist "..\shared\target\doc\phantomlink_gamepad_core" (
+ move "..\shared\target\doc\phantomlink_gamepad_core" "%CORE_DOC%"
echo [SUCCESS] Core docs moved to: %CORE_DOC%
) else (
echo [ERROR] Core docs generation failed
diff --git a/client/Cargo.toml b/client/Cargo.toml
index 5c23ff8..45f6abd 100644
--- a/client/Cargo.toml
+++ b/client/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "phantomlink-gamepad-client"
-authors = [ "Weicao-CatilGrass" ]
+authors = [ "CatilGrass" ]
description = "A mobile device control solution for local multiplayer gaming, featuring an in-game interface, controller client, and support for universal devices."
-homepage = "https://github.com/Weicao-CatilGrass/PhantomLink-Gamepad"
-repository = "https://github.com/Weicao-CatilGrass/PhantomLink-Gamepad"
+homepage = "https://github.com/CatilGrass/PhantomLink-Gamepad"
+repository = "https://github.com/CatilGrass/PhantomLink-Gamepad"
readme = "../README.md"
version = "0.1.0"
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 1746c8e..7d0295f 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "phantomlink-gamepad-core"
-authors = [ "Weicao-CatilGrass" ]
+authors = [ "CatilGrass" ]
description = "A mobile device control solution for local multiplayer gaming, featuring an in-game interface, controller client, and support for universal devices."
-homepage = "https://github.com/Weicao-CatilGrass/PhantomLink-Gamepad"
-repository = "https://github.com/Weicao-CatilGrass/PhantomLink-Gamepad"
+homepage = "https://github.com/CatilGrass/PhantomLink-Gamepad"
+repository = "https://github.com/CatilGrass/PhantomLink-Gamepad"
readme = "../README.md"
version = "0.1.0"
diff --git a/core/server_test/Cargo.toml b/core/server_test/Cargo.toml
index 75dc6c8..192aac9 100644
--- a/core/server_test/Cargo.toml
+++ b/core/server_test/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "phantomlink-server-test"
-authors = [ "Weicao-CatilGrass" ]
+authors = [ "CatilGrass" ]
version = "0.1.0"
edition = "2024"