Replies: 3 comments
-
i would be nice to have build variants and to support it at the package level would be pretty powerfulu |
Beta Was this translation helpful? Give feedback.
-
Been thinking about how to deal with simplifying source files... if we want to have not just file level profiles but source level simplification as well. If we really need to we could try https://coan2.sourceforge.net/index.php?page=about which is written in C and is BSD licensed... so perhaps can be integrated into clibs. But I think that's rather heavy handed for what we are trying to do here. |
Beta Was this translation helpful? Give feedback.
-
As for how may we represents profiles vs features... I've sketched out in https://github.com/mofosyne/kv_parse.c/blob/main/clib.json my idea how to encode the feature flags and profiles. e.g. have a look at the flags fields and profiles fields as well. {
"name": "kv_parse",
"version": "1.1.1",
"repo": "mofosyne/kv_parse.c",
"description": "Composible Key Value Parser C library for parsing key value strings with zero-copy and no mallocs.",
"license": "MIT",
"src": [
"kv_parse.c",
"kv_parse.h",
"kv_parse_buffer.c",
"kv_parse_buffer.h"
],
"flags": [
{
"name": "Whitespace Skip",
"disable flag": "KV_PARSE_DISABLE_WHITESPACE_SKIP",
"description": "Ignores spaces and tabs around keys and values"
},
{
"name": "Disable Quoted String",
"disable flag": "KV_PARSE_DISABLE_QUOTED_STRINGS",
"description": "Handles values enclosed in single (`'`) or double (`\"`) quotes"
}
],
"profiles": [
{
"name": "File Stream Only",
"src": [
"kv_parse.c",
"kv_parse.h"
],
"description": "Use File Stream Only"
},
{
"name": "Buffer Only",
"src": [
"kv_parse_buffer.c",
"kv_parse_buffer.h"
],
"description": "Use Buffer Only"
}
]
} Hopefully this is sensible and understandable and not too technically challenged. |
Beta Was this translation helpful? Give feedback.
-
What if a package can have 'profiles' where you can selectively enable 'sets' of files and also enable/disable features.
Beta Was this translation helpful? Give feedback.
All reactions