mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-07-03 14:29:26 +00:00
fix: move API module into srcDir so 'import sds' resolves for nimble consumers
This commit is contained in:
parent
7725beb5e5
commit
57325a2fad
@ -1,3 +1,8 @@
|
||||
# The package's import root is its srcDir ("sds"), where the API module
|
||||
# sds.nim lives. Put it on the path so in-repo consumers (tests/, library/)
|
||||
# resolve `import sds` the same way nimble consumers of the package do.
|
||||
switch("path", thisDir() & "/sds")
|
||||
|
||||
# begin Nimble config (version 2)
|
||||
--noNimblePath
|
||||
when withDir(thisDir(), system.fileExists("nimble.paths")):
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import std/[algorithm, times, tables, sets, options]
|
||||
import chronos, results, chronicles
|
||||
import sds/[types, protobuf, sds_utils, rolling_bloom_filter]
|
||||
import ./[types, protobuf, sds_utils, rolling_bloom_filter]
|
||||
|
||||
export types, protobuf, sds_utils, rolling_bloom_filter
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
import sds/types/sds_message_id
|
||||
import sds/types/history_entry
|
||||
import sds/types/sds_message
|
||||
import sds/types/unacknowledged_message
|
||||
import sds/types/incoming_message
|
||||
import sds/types/bloom_filter
|
||||
import sds/types/rolling_bloom_filter
|
||||
import sds/types/reliability_error
|
||||
import sds/types/callbacks
|
||||
import sds/types/app_callbacks
|
||||
import sds/types/reliability_config
|
||||
import sds/types/repair_entry
|
||||
import sds/types/channel_context
|
||||
import sds/types/persistence
|
||||
import sds/types/reliability_manager
|
||||
import sds/types/protobuf_error
|
||||
import ./types/sds_message_id
|
||||
import ./types/history_entry
|
||||
import ./types/sds_message
|
||||
import ./types/unacknowledged_message
|
||||
import ./types/incoming_message
|
||||
import ./types/bloom_filter
|
||||
import ./types/rolling_bloom_filter
|
||||
import ./types/reliability_error
|
||||
import ./types/callbacks
|
||||
import ./types/app_callbacks
|
||||
import ./types/reliability_config
|
||||
import ./types/repair_entry
|
||||
import ./types/channel_context
|
||||
import ./types/persistence
|
||||
import ./types/reliability_manager
|
||||
import ./types/protobuf_error
|
||||
|
||||
export
|
||||
sds_message_id, history_entry, sds_message, unacknowledged_message, incoming_message,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user